必赢娱乐网_必赢娱乐注册_首页

int() argument must be a string or a number, not 'AnonymousUser'
Request Method:
GET
Request URL:
http://www.bannei.com/question/admin/
Django Version:
1.2.3
Exception Type:
TypeError
Exception Value:
int() argument must be a string or a number, not 'AnonymousUser'
Exception Location:
/usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py in get_prep_value, line 479
Python Executable:
/usr/bin/uwsgi
Python Version:
2.7.5
Python Path:
['.', '', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
Server time:
星期三, 20 十一月 2019 14:08:25 +0800

Traceback Switch to copy-and-paste view

  • /usr/lib/python2.7/site-packages/django/core/handlers/base.py in get_response
    1. # Apply view middleware
    2. for middleware_method in self._view_middleware:
    3. response = middleware_method(request, callback, callback_args, callback_kwargs)
    4. if response:
    5. return response
    6. try:
    1. response = callback(request, *callback_args, **callback_kwargs) ...
    1. except Exception, e:
    2. # If the view raised an exception, run it through exception
    3. # middleware, and if the exception middleware returns a
    4. # response, use that. Otherwise, reraise the exception.
    5. for middleware_method in self._exception_middleware:
    6. response = middleware_method(request, e)
    Variable Value
    callback
    <function index at 0x7fd29302ac80>
    callback_args
    ()
    callback_kwargs
    {}
    e
    TypeError("int() argument must be a string or a number, not 'AnonymousUser'",)
    exceptions
    <module 'django.core.exceptions' from '/usr/lib/python2.7/site-packages/django/core/exceptions.pyc'>
    middleware_method
    <bound method XViewMiddleware.process_view of <django.middleware.doc.XViewMiddleware object at 0x7fd2b1bdc110>>
    receivers
    [(<function _rollback_on_exception at 0x7fd2b0cf2578>, None)]
    request
    <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'deflate, gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.bannei.com', 'HTTP_USER_AGENT': 'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)', 'HTTP_X_FORWARDED_FOR': '154.208.106.39', 'HTTP_X_REAL_IP': '154.208.106.39', 'PATH_INFO': u'/question/admin/', 'QUERY_STRING': '', 'REMOTE_ADDR': '192.168.0.72', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/question/admin/', 'SCRIPT_NAME': u'', 'SERVER_NAME': '414c0481f1a8', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'uwsgi.core': 5, 'uwsgi.node': '414c0481f1a8', 'uwsgi.version': '2.0.18', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fd2b598e930>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fd292724810>, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
    resolver
    <RegexURLResolver bannei.urls (None:None) ^/>
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x7fd2bb9fd9d0>
    settings
    <django.conf.LazySettings object at 0x7fd2b59514d0>
    urlconf
    'bannei.urls'
    urlresolvers
    <module 'django.core.urlresolvers' from '/usr/lib/python2.7/site-packages/django/core/urlresolvers.pyc'>
  • ./bannei/question/admin.py in index
    1. """
    2. 功能说明:用户管理页面
    3. --------------------------------
    4. 修改人 修改时间 修改原因
    5. --------------------------------
    6. 徐威 2010-8-9
    7. """
    1. admin_user = Admin.objects.filter(user=request.user) ...
    1. if not admin_user:
    2. return HttpResponseRedirect('/')
    3. context = {}
    4. admins = Admin.objects.all()
    5. context['admins'] = admins
    6. context['admin_user'] = admin_user[0]
    Variable Value
    request
    <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'deflate, gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.bannei.com', 'HTTP_USER_AGENT': 'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)', 'HTTP_X_FORWARDED_FOR': '154.208.106.39', 'HTTP_X_REAL_IP': '154.208.106.39', 'PATH_INFO': u'/question/admin/', 'QUERY_STRING': '', 'REMOTE_ADDR': '192.168.0.72', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/question/admin/', 'SCRIPT_NAME': u'', 'SERVER_NAME': '414c0481f1a8', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'uwsgi.core': 5, 'uwsgi.node': '414c0481f1a8', 'uwsgi.version': '2.0.18', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7fd2b598e930>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7fd292724810>, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
  • /usr/lib/python2.7/site-packages/django/db/models/manager.py in filter
    1. def get_or_create(self, **kwargs):
    2. return self.get_query_set().get_or_create(**kwargs)
    3. def create(self, **kwargs):
    4. return self.get_query_set().create(**kwargs)
    5. def filter(self, *args, **kwargs):
    1. return self.get_query_set().filter(*args, **kwargs) ...
    1. def aggregate(self, *args, **kwargs):
    2. return self.get_query_set().aggregate(*args, **kwargs)
    3. def annotate(self, *args, **kwargs):
    4. return self.get_query_set().annotate(*args, **kwargs)
    Variable Value
    args
    ()
    kwargs
    {'user': <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>}
    self
    <django.db.models.manager.Manager object at 0x7fd29318b450>
  • /usr/lib/python2.7/site-packages/django/db/models/query.py in filter
    1. return self._clone()
    2. def filter(self, *args, **kwargs):
    3. """
    4. Returns a new QuerySet instance with the args ANDed to the existing
    5. set.
    6. """
    1. return self._filter_or_exclude(False, *args, **kwargs) ...
    1. def exclude(self, *args, **kwargs):
    2. """
    3. Returns a new QuerySet instance with NOT (args) ANDed to the existing
    4. set.
    5. """
    Variable Value
    args
    ()
    kwargs
    {'user': <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>}
    self
    [<Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, '...(remaining elements truncated)...']
  • /usr/lib/python2.7/site-packages/django/db/models/query.py in _filter_or_exclude
    1. assert self.query.can_filter(), \
    2. "Cannot filter a query once a slice has been taken."
    3. clone = self._clone()
    4. if negate:
    5. clone.query.add_q(~Q(*args, **kwargs))
    6. else:
    1. clone.query.add_q(Q(*args, **kwargs)) ...
    1. return clone
    2. def complex_filter(self, filter_obj):
    3. """
    4. Returns a new QuerySet instance with filter_obj added to the filters.
    Variable Value
    args
    ()
    clone
    [<Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, '...(remaining elements truncated)...']
    kwargs
    {'user': <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>}
    negate
    False
    self
    [<Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, <Admin: Admin object>, '...(remaining elements truncated)...']
  • /usr/lib/python2.7/site-packages/django/db/models/sql/query.py in add_q
    1. if connector == OR:
    2. refcounts_before = self.alias_refcount.copy()
    3. self.where.start_subtree(connector)
    4. if isinstance(child, Node):
    5. self.add_q(child, used_aliases)
    6. else:
    7. self.add_filter(child, connector, q_object.negated,
    1. can_reuse=used_aliases) ...
    1. self.where.end_subtree()
    2. if connector == OR:
    3. # Aliases that were newly added or not used at all need to
    4. # be promoted to outer joins if they are nullable relations.
    5. # (they shouldn't turn the whole conditional into the empty
    6. # set just because they don't match anything).
    Variable Value
    child
    ('user', <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>)
    connector
    'AND'
    q_object
    <django.db.models.query_utils.Q object at 0x7fd2b6907a10>
    self
    <django.db.models.sql.query.Query object at 0x7fd2b6907d10>
    subtree
    False
    used_aliases
    set()
  • /usr/lib/python2.7/site-packages/django/db/models/sql/query.py in add_filter
    1. if having_clause:
    2. self.having.add((Constraint(alias, col, field), lookup_type, value),
    3. connector)
    4. else:
    5. self.where.add((Constraint(alias, col, field), lookup_type, value),
    1. connector) ...
    1. if negate:
    2. self.promote_alias_chain(join_list)
    3. if lookup_type != 'isnull':
    4. if len(join_list) > 1:
    5. for alias in join_list:
    Variable Value
    alias
    'question_admin'
    allow_many
    True
    arg
    'user'
    can_reuse
    set()
    col
    'user_id'
    connector
    'AND'
    extra_filters
    []
    field
    <django.db.models.fields.related.ForeignKey object at 0x7fd293182d90>
    filter_expr
    ('user', <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>)
    having_clause
    False
    join_list
    ['question_admin']
    last
    []
    lookup_type
    'exact'
    negate
    False
    opts
    <Options for User>
    parts
    ['user']
    process_extras
    True
    self
    <django.db.models.sql.query.Query object at 0x7fd2b6907d10>
    target
    <django.db.models.fields.AutoField object at 0x7fd2b0868890>
    trim
    False
    value
    <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>
  • /usr/lib/python2.7/site-packages/django/db/models/sql/where.py in add
    1. annotation = datetime.datetime
    2. elif hasattr(value, 'value_annotation'):
    3. annotation = value.value_annotation
    4. else:
    5. annotation = bool(value)
    6. if hasattr(obj, "prepare"):
    1. value = obj.prepare(lookup_type, value) ...
    1. super(WhereNode, self).add((obj, lookup_type, annotation, value),
    2. connector)
    3. return
    4. super(WhereNode, self).add((obj, lookup_type, annotation, value),
    5. connector)
    Variable Value
    annotation
    True
    connector
    'AND'
    data
    (<django.db.models.sql.where.Constraint object at 0x7fd2b6907c90>, 'exact', <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>)
    lookup_type
    'exact'
    obj
    <django.db.models.sql.where.Constraint object at 0x7fd2b6907c90>
    self
    <django.db.models.sql.where.WhereNode object at 0x7fd2b6907f50>
    value
    <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>
  • /usr/lib/python2.7/site-packages/django/db/models/sql/where.py in prepare
    1. if model is not None:
    2. self.field = model._meta.get_field(field_name)
    3. else:
    4. self.field = None
    5. def prepare(self, lookup_type, value):
    6. if self.field:
    1. return self.field.get_prep_lookup(lookup_type, value) ...
    1. return value
    2. def process(self, lookup_type, value, connection):
    3. """
    4. Returns a tuple of data suitable for inclusion in a WhereNode
    5. instance.
    Variable Value
    lookup_type
    'exact'
    self
    <django.db.models.sql.where.Constraint object at 0x7fd2b6907c90>
    value
    <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>
  • /usr/lib/python2.7/site-packages/django/db/models/fields/related.py in get_prep_lookup
    1. if hasattr(value, '_prepare'):
    2. return value._prepare()
    3. # FIXME: lt and gt are explicitly allowed to make
    4. # get_(next/prev)_by_date work; other lookups are not allowed since that
    5. # gets messy pretty quick. This is a good candidate for some refactoring
    6. # in the future.
    7. if lookup_type in ['exact', 'gt', 'lt', 'gte', 'lte']:
    1. return self._pk_trace(value, 'get_prep_lookup', lookup_type) ...
    1. if lookup_type in ('range', 'in'):
    2. return [self._pk_trace(v, 'get_prep_lookup', lookup_type) for v in value]
    3. elif lookup_type == 'isnull':
    4. return []
    5. raise TypeError("Related Field has invalid lookup: %s" % lookup_type)
    Variable Value
    lookup_type
    'exact'
    self
    <django.db.models.fields.related.ForeignKey object at 0x7fd293182d90>
    value
    <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>
  • /usr/lib/python2.7/site-packages/django/db/models/fields/related.py in _pk_trace
    1. if hasattr(field.rel, 'field_name'):
    2. field = field.rel.to._meta.get_field(field.rel.field_name)
    3. else:
    4. field = field.rel.to._meta.pk
    5. if lookup_type in ('range', 'in'):
    6. v = [v]
    1. v = getattr(field, prep_func)(lookup_type, v, **kwargs) ...
    1. if isinstance(v, list):
    2. v = v[0]
    3. return v
    4. def related_query_name(self):
    5. # This method defines the name that can be used to identify this
    Variable Value
    field
    <django.db.models.fields.AutoField object at 0x7fd2b0868890>
    kwargs
    {}
    lookup_type
    'exact'
    prep_func
    'get_prep_lookup'
    self
    <django.db.models.fields.related.ForeignKey object at 0x7fd293182d90>
    v
    <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>
    value
    <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>
  • /usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py in get_prep_lookup
    1. if lookup_type in (
    2. 'regex', 'iregex', 'month', 'day', 'week_day', 'search',
    3. 'contains', 'icontains', 'iexact', 'startswith', 'istartswith',
    4. 'endswith', 'iendswith', 'isnull'
    5. ):
    6. return value
    7. elif lookup_type in ('exact', 'gt', 'gte', 'lt', 'lte'):
    1. return self.get_prep_value(value) ...
    1. elif lookup_type in ('range', 'in'):
    2. return [self.get_prep_value(v) for v in value]
    3. elif lookup_type == 'year':
    4. try:
    5. return int(value)
    6. except ValueError:
    Variable Value
    lookup_type
    'exact'
    self
    <django.db.models.fields.AutoField object at 0x7fd2b0868890>
    value
    <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>
  • /usr/lib/python2.7/site-packages/django/db/models/fields/__init__.py in get_prep_value
    1. def validate(self, value, model_instance):
    2. pass
    3. def get_prep_value(self, value):
    4. if value is None:
    5. return None
    1. return int(value) ...
    1. def contribute_to_class(self, cls, name):
    2. assert not cls._meta.has_auto_field, "A model can't have more than one AutoField."
    3. super(AutoField, self).contribute_to_class(cls, name)
    4. cls._meta.has_auto_field = True
    5. cls._meta.auto_field = self
    Variable Value
    self
    <django.db.models.fields.AutoField object at 0x7fd2b0868890>
    value
    <django.contrib.auth.models.AnonymousUser object at 0x7fd2904b1e10>


  • Request information

    GET

    No GET data

    POST

    No POST data

    FILES

    No FILES data

    No cookie data

    META

    Variable Value
    HTTP_ACCEPT
    '*/*'
    HTTP_ACCEPT_ENCODING
    'deflate, gzip'
    HTTP_CONNECTION
    'close'
    HTTP_HOST
    'www.bannei.com'
    HTTP_USER_AGENT
    'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)'
    HTTP_X_FORWARDED_FOR
    '154.208.106.39'
    HTTP_X_REAL_IP
    '154.208.106.39'
    PATH_INFO
    u'/question/admin/'
    QUERY_STRING
    ''
    REMOTE_ADDR
    '192.168.0.72'
    REQUEST_METHOD
    'GET'
    REQUEST_URI
    '/question/admin/'
    SCRIPT_NAME
    u''
    SERVER_NAME
    '414c0481f1a8'
    SERVER_PORT
    '80'
    SERVER_PROTOCOL
    'HTTP/1.0'
    uwsgi.core
    5
    uwsgi.node
    '414c0481f1a8'
    uwsgi.version
    '2.0.18'
    wsgi.errors
    <open file 'wsgi_errors', mode 'w' at 0x7fd2b598e930>
    wsgi.file_wrapper
    <built-in function uwsgi_sendfile>
    wsgi.input
    <uwsgi._Input object at 0x7fd292724810>
    wsgi.multiprocess
    True
    wsgi.multithread
    True
    wsgi.run_once
    False
    wsgi.url_scheme
    'http'
    wsgi.version
    (1, 0)

    Settings

    Using settings module bannei.settings

    Setting Value
    ABSOLUTE_URL_OVERRIDES
    {}
    ADMINS
    ()
    ADMIN_FOR
    ()
    ADMIN_MEDIA_PREFIX
    'media/'
    ALLOWED_INCLUDE_ROOTS
    ()
    APPEND_SLASH
    True
    AUTHENTICATION_BACKENDS
    ('django.contrib.auth.backends.ModelBackend',)
    AUTH_PROFILE_MODULE
    'account.Profile'
    BANNED_IPS
    ()
    BANNEI_API_URL
    'http://116.255.220.107:6081'
    CACHE_BACKEND
    'file:///media'
    CACHE_MIDDLEWARE_KEY_PREFIX
    ''
    CACHE_MIDDLEWARE_SECONDS
    600
    COMMENTS_ALLOW_PROFANITIES
    False
    COMMENTS_BANNED_USERS_GROUP
    None
    COMMENTS_FIRST_FEW
    0
    COMMENTS_MODERATORS_GROUP
    None
    COMMENTS_SKETCHY_USERS_GROUP
    None
    COURSEWARE_DIR
    '/media/bn_client_media/'
    CSRF_COOKIE_DOMAIN
    None
    CSRF_COOKIE_NAME
    'csrftoken'
    CSRF_FAILURE_VIEW
    'django.views.csrf.csrf_failure'
    DATABASES
    {'default': {'ENGINE': 'django.db.backends.mysql', 'HOST': '192.168.0.101', 'NAME': 'bannei', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'GMT-8', 'USER': 'bannei'}, 'unicom': {'ENGINE': 'django.db.backends.mysql', 'HOST': '192.168.0.101', 'NAME': 'unicom', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'GMT-8', 'USER': 'bannei'}}
    DATABASES_CONFIG
    {'BANNEI_DEBUG': 'True', 'BANNEI_LOGIN_KEY': 'bannei_login', 'BANNEI_SESSION_COOKIE_DOMAIN': 'bannei.com', 'BANNEI_URLROOT': 'http://www.bannei.com', 'DB_BN_MASTER_HOST': '192.168.0.101', 'DB_BN_PASSWORD': '********************', 'DB_BN_PORT': '3306', 'DB_BN_SLAVE_HOST': '192.168.0.101', 'DB_BN_USER': 'bannei', 'FILE_BN_UPLOAD_KEY': 'bannei_upload', 'FILE_BN_URLROOT': 'http://file.bannei.com', 'MC_CACHE_BACKEND': 'file:///media', 'ORGAN_URLROOT': 'http://henan.bannei.com'}
    DATABASE_ENGINE
    ''
    DATABASE_HOST
    ''
    DATABASE_NAME
    ''
    DATABASE_OPTIONS
    {}
    DATABASE_PASSWORD
    '********************'
    DATABASE_PORT
    ''
    DATABASE_ROUTERS
    ['bannei.mobile.router.MobileRouter', 'bannei.unicom.router.UnicomRouter']
    DATABASE_USER
    ''
    DATETIME_FORMAT
    'N j, Y, P'
    DATETIME_INPUT_FORMATS
    ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y')
    DATE_FORMAT
    'N j, Y'
    DATE_INPUT_FORMATS
    ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y')
    DEBUG
    True
    DEBUG_PROPAGATE_EXCEPTIONS
    False
    DECIMAL_SEPARATOR
    '.'
    DEFAULT_CHARSET
    'UTF-8'
    DEFAULT_CONTENT_TYPE
    'text/html'
    DEFAULT_FILE_STORAGE
    'django.core.files.storage.FileSystemStorage'
    DEFAULT_FROM_EMAIL
    'banneiservice@gmail.com'
    DEFAULT_INDEX_TABLESPACE
    ''
    DEFAULT_TABLESPACE
    ''
    DIRNAME
    './bannei'
    DISALLOWED_USER_AGENTS
    ()
    EMAIL_BACKEND
    'django.core.mail.backends.smtp.EmailBackend'
    EMAIL_HOST
    'smtp.gmail.com'
    EMAIL_HOST_PASSWORD
    '********************'
    EMAIL_HOST_USER
    'banneiservice@gmail.com'
    EMAIL_PORT
    587
    EMAIL_SUBJECT_PREFIX
    ''
    EMAIL_USE_TLS
    True
    FILE_CHARSET
    'UTF-8'
    FILE_UPLOAD_HANDLERS
    ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
    FILE_UPLOAD_MAX_MEMORY_SIZE
    2621440
    FILE_UPLOAD_PERMISSIONS
    None
    FILE_UPLOAD_TEMP_DIR
    None
    FILE_WEB_URLROOT
    'http://file.bannei.com'
    FILTERS
    (('^homepage/(?P<object_id>\\d+)/', 'bannei.account.filter.check_valid_user'),)
    FIRST_DAY_OF_WEEK
    0
    FIXTURE_DIRS
    ()
    FORCE_SCRIPT_NAME
    None
    FORMAT_MODULE_PATH
    None
    HENAN_URLROOT
    'http://henan.bannei.com'
    HUODONG_SITE
    '/var/www/bannei/themes/huodong/'
    IGNORABLE_404_ENDS
    ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
    IGNORABLE_404_STARTS
    ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
    INSTALLED_APPS
    ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'bannei.common', 'bannei.account', 'bannei.blog', 'bannei.album', 'bannei.message', 'bannei.homepage', 'bannei.guestbook', 'bannei.poll', 'bannei.visitor', 'bannei.discussion', 'bannei.collection', 'bannei.class_space', 'bannei.school_site', 'bannei.portal', 'bannei.group', 'bannei.comment', 'bannei.newactivity', 'bannei.request', 'bannei.manage', 'bannei.invite', 'bannei.teach', 'bannei.help', 'bannei.question', 'bannei.parentschool', 'bannei.organ', 'bannei.video', 'bannei.lore', 'bannei.liaison', 'bannei.advertise', 'bannei.score', 'bannei.huodong', 'bannei.star', 'bannei.phoneschool', 'bannei.bird', 'bannei.funny', 'bannei.bank', 'bannei.directmedia', 'bannei.school_admin', 'bannei.game', 'bannei.friend', 'bannei.gonggao', 'bannei.word', 'bannei.xjcx', 'bannei.letterpaper', 'bannei.oauth', 'bannei.qiuliang']
    INTERNAL_IPS
    ()
    LANGUAGES
    (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
    LANGUAGES_BIDI
    ('he', 'ar', 'fa')
    LANGUAGE_CODE
    'zh-cn'
    LANGUAGE_COOKIE_NAME
    'django_language'
    LOCALE_PATHS
    ()
    LOGDIR
    './bannei/log'
    LOGFILE
    '2019-10-30-15.log'
    LOGIN_KEY_VALUE
    'bannei_login'
    LOGIN_REDIRECT_URL
    '/accounts/profile/'
    LOGIN_URL
    '/accounts/login/'
    LOGOUT_URL
    '/accounts/logout/'
    MANAGERS
    ()
    MEDIA_HTML
    './bannei/media_html'
    MEDIA_ROOT
    '/var/www/bannei/upload_media/'
    MEDIA_SITE
    './bannei/media'
    MEDIA_URL
    '/upload_media/'
    MESSAGE_STORAGE
    'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
    MIDDLEWARE_CLASSES
    ('django.middleware.common.CommonMiddleware', 'bannei.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'bannei.unicom.sms.middleware.AuthenticationMiddleware', 'bannei.account.middleware.AuthenticationMiddleware')
    MONTH_DAY_FORMAT
    'F j'
    NUMBER_GROUPING
    0
    OPEN_UNICOM_CITY_ID
    [190, 191, 197, 201, 204]
    PASSWORD_RESET_TIMEOUT_DAYS
    '********************'
    PREPEND_WWW
    False
    PROFANITIES_LIST
    '********************'
    ROOT_URLCONF
    'bannei.urls'
    SECRET_KEY
    '********************'
    SEND_BROKEN_LINK_EMAILS
    False
    SERVER_EMAIL
    'root@localhost'
    SESSION_COOKIE_AGE
    1209600
    SESSION_COOKIE_DOMAIN
    'bannei.com'
    SESSION_COOKIE_NAME
    'sessionid'
    SESSION_COOKIE_PATH
    '/'
    SESSION_COOKIE_SECURE
    False
    SESSION_ENGINE
    'django.contrib.sessions.backends.db'
    SESSION_EXPIRE_AT_BROWSER_CLOSE
    False
    SESSION_FILE_PATH
    None
    SESSION_SAVE_EVERY_REQUEST
    False
    SETTINGS_MODULE
    'bannei.settings'
    SHORT_DATETIME_FORMAT
    'm/d/Y P'
    SHORT_DATE_FORMAT
    'm/d/Y'
    SITE_ID
    1
    SPHINX_HOST
    '192.168.0.19'
    SPHINX_PORT
    3312
    SPHINX_SERVER
    '192.168.0.19'
    TEMPLATE_CONTEXT_PROCESSORS
    ('django.core.context_processors.auth', 'django.core.context_processors.request', 'bannei.utils.setting_process.settings', 'bannei.unicom.sms.context_process.settings')
    TEMPLATE_DEBUG
    True
    TEMPLATE_DIRS
    ('./bannei/themes', './bannei/templates')
    TEMPLATE_LOADERS
    ('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
    TEMPLATE_STRING_IF_INVALID
    ''
    TEST_DATABASE_CHARSET
    None
    TEST_DATABASE_COLLATION
    None
    TEST_DATABASE_NAME
    None
    TEST_RUNNER
    'django.test.simple.DjangoTestSuiteRunner'
    THEME_SITE
    './bannei/themes'
    THOUSAND_SEPARATOR
    ','
    TIME_FORMAT
    'P'
    TIME_INPUT_FORMATS
    ('%H:%M:%S', '%H:%M')
    TIME_ZONE
    'GMT-8'
    TRANSACTIONS_MANAGED
    False
    UPLOAD_FILE_KEY_VALUE
    'bannei_upload'
    URLROOT
    'http://www.bannei.com'
    URL_VALIDATOR_USER_AGENT
    'Django/1.2.3 (http://www.djangoproject.com)'
    USE_ETAGS
    False
    USE_I18N
    True
    USE_L10N
    False
    USE_THOUSAND_SEPARATOR
    False
    YEAR_MONTH_FORMAT
    'F Y'

    You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.