|
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/comments/ |
Upload File : |
�
r�\c @ s� d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m
Z
d d l m Z e j
d e � d Z d
� Z d � Z d � Z d
� Z d � Z d � Z d � Z d � Z d S( i����N( t settings( t urlresolvers( t ImproperlyConfigured( t Comment( t CommentForm( t
import_modulesL django.contrib.comments is deprecated and will be removed before Django 1.8.s django.contrib.commentsc C sh t � } | t j k r. t d t j � � n y t | � } Wn# t k
rc } t d | � � n X| S( sY
Get the comment app (i.e. "django.contrib.comments") as defined in the settings
s/ The COMMENTS_APP (%r) must be in INSTALLED_APPSs? The COMMENTS_APP setting refers to a non-existing package. (%s)( t get_comment_app_nameR t INSTALLED_APPSR t COMMENTS_APPR t ImportError( t comments_appt packaget e( ( sB /tmp/pip-install-XxeQeY/django/django/contrib/comments/__init__.pyt get_comment_app
s c C s t t d t � S( sk
Returns the name of the comment app (either the setting value, if it
exists, or the default).
R ( t getattrR t DEFAULT_COMMENTS_APP( ( ( sB /tmp/pip-install-XxeQeY/django/django/contrib/comments/__init__.pyR s c C s6 t � t k r. t t � d � r. t � j � St Sd S( s*
Returns the comment model class.
t get_modelN( R R t hasattrR
R R ( ( ( sB /tmp/pip-install-XxeQeY/django/django/contrib/comments/__init__.pyR '