|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /lib64/python2.7/site-packages/django/contrib/sites/ |
Upload File : |
�
r�\c @ s d d l m Z d d l Z d d l m Z d d l m Z m Z d d l m Z
d d l m Z d d l
m Z i a d � Z d e j f d
� � YZ e d e j f d � � Y� Z e d
e f d � � Y� Z d � Z d � Z e j e d e �e j e d e �d S( i����( t unicode_literalsN( t models( t pre_savet
pre_delete( t
ugettext_lazy( t python_2_unicode_compatible( t ValidationErrorc sN � s
d S� f d � t j D� } t | � rJ t t d � d d �� n d S( u]
Validates that the given value contains no whitespaces to prevent common
typos.
Nc 3 s | ] } | � k Vq d S( N( ( t .0t s( t value( s= /tmp/pip-install-XxeQeY/django/django/contrib/sites/models.pys <genexpr> s u2 The domain name cannot contain any spaces or tabs.t codeu invalid( t stringt
whitespacet anyR t _( R t checks( ( R s= /tmp/pip-install-XxeQeY/django/django/contrib/sites/models.pyt _simple_domain_name_validator s t SiteManagerc B s e Z d � Z d � Z RS( c C s� d d l m } y
| j } Wn- t k
rL d d l m } | d � � n Xy t | } Wn- t k
r� | j d | � } | t | <n X| S( u�
Returns the current ``Site`` based on the SITE_ID in the
project's settings. The ``Site`` object is cached the first
time it's retrieved from the database.
i����( t settings( t ImproperlyConfiguredu� You're using the Django "sites framework" without having set the SITE_ID setting. Create a site in your database and set the SITE_ID setting to fix this error.t pk( t django.confR t SITE_IDt AttributeErrort django.core.exceptionsR t
SITE_CACHEt KeyErrort get( t selfR t sidR t current_site( ( s= /tmp/pip-install-XxeQeY/django/django/contrib/sites/models.pyt get_current s
c C s
i a d S( u! Clears the ``Site`` object cache.N( R ( R ( ( s= /tmp/pip-install-XxeQeY/django/django/contrib/sites/models.pyt clear_cache3 s ( t __name__t
__module__R R ( ( ( s= /tmp/pip-install-XxeQeY/django/django/contrib/sites/models.pyR s t Sitec B sl e Z e j e d � d d d e g �Z e j e d � d d �Z e � Z d d d � � YZ
d � Z RS(
u domain namet
max_lengthid t
validatorsu display namei2 t Metac B s, e Z d Z e d � Z e d � Z d Z RS( u django_siteu siteu sitesu domain( u domain( R! R"