no such table: django_session
Request Method: | GET |
---|---|
Request URL: | http://bbs.ccose.org/accounts/login/ |
Django Version: | 1.4.22 |
Exception Type: | DatabaseError |
Exception Value: | no such table: django_session |
Exception Location: | /usr/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 344 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.5 |
Python Path: | ['/home/mycode/ccose_deploy/ccose', '/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: | 星期四, 28 三月 2024 17:23:08 +0800 |
/usr/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
# Reset URLconf for this thread on the way out for complete
# isolation of request.urlconf
urlresolvers.set_urlconf(None)
try:
# Apply response middleware, regardless of the response
for middleware_method in self._response_middleware:
response = middleware_method(request, response)...
response = self.apply_response_fixes(request, response)
except: # Any exception should be gathered and handled
signals.got_request_exception.send(sender=self.__class__, request=request)
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
return response
Variable | Value |
---|---|
exceptions | <module 'django.core.exceptions' from '/usr/lib/python2.7/site-packages/django/core/exceptions.pyc'> |
e | DatabaseError('no such table: django_site',) |
callback_args | () |
settings | <django.conf.LazySettings object at 0x7f4ead284dd0> |
middleware_method | <bound method SessionMiddleware.process_response of <django.contrib.sessions.middleware.SessionMiddleware object at 0x7f4ead88b9d0>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4ead87fe90> |
request | "<WSGIRequest\npath:/accounts/login/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/home/mycode/ccose_deploy/ccose/',\n 'CONTEXT_PREFIX': '',\n 'CSRF_COOKIE': '0bloUYxJyKzu4jOG4ll6t19eoIKf2UGg',\n 'DOCUMENT_ROOT': '/home/mycode/ccose_deploy/ccose/',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'bbs.ccose.org',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/accounts/login/',\n 'PATH_TRANSLATED': '/home/mycode/ccose_deploy/ccose/ccose/wsgi.py/accounts/login/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '100.26.140.179',\n 'REMOTE_PORT': '45180',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/accounts/login/',\n 'SCRIPT_FILENAME': '/home/mycode/ccose_deploy/ccose/ccose/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '192.168.122.253',\n 'SERVER_ADMIN': 'wenyuejie@126.com',\n 'SERVER_NAME': 'bbs.ccose.org',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.6 (CentOS) PHP/7.0.32 mod_wsgi/3.4 Python/2.7.5',\n 'UNIQUE_ID': 'ZgU2-Bw27979AWgv6oOsuAAAAAY',\n 'mod_wsgi.application_group': 'www.ccose.org|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.queue_start': '1711617788286391',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 4),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f4eade6ff30>,\n 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f4eadfaf210>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f4eade6f830>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function login at 0x7f4eade61050> |
resolver | <RegexURLResolver ccose.urls (None:None) ^/> |
urlresolvers | <module 'django.core.urlresolvers' from '/usr/lib/python2.7/site-packages/django/core/urlresolvers.pyc'> |
callback_kwargs | {'template_name': 'registration/login.html'} |
response | <django.http.HttpResponseServerError object at 0x7f4eadf84510> |
urlconf | 'ccose.urls' |
/usr/lib/python2.7/site-packages/django/contrib/sessions/middleware.py
in process_response
max_age = None
expires = None
else:
max_age = request.session.get_expiry_age()
expires_time = time.time() + max_age
expires = cookie_date(expires_time)
# Save the session data and refresh the client cookie.
request.session.save()...
response.set_cookie(settings.SESSION_COOKIE_NAME,
request.session.session_key, max_age=max_age,
expires=expires, domain=settings.SESSION_COOKIE_DOMAIN,
path=settings.SESSION_COOKIE_PATH,
secure=settings.SESSION_COOKIE_SECURE or None,
httponly=settings.SESSION_COOKIE_HTTPONLY or None)
Variable | Value |
---|---|
max_age | 1209600 |
self | <django.contrib.sessions.middleware.SessionMiddleware object at 0x7f4ead88b9d0> |
expires | 'Thu, 11-Apr-2024 09:23:08 GMT' |
request | "<WSGIRequest\npath:/accounts/login/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTEXT_DOCUMENT_ROOT': '/home/mycode/ccose_deploy/ccose/',\n 'CONTEXT_PREFIX': '',\n 'CSRF_COOKIE': '0bloUYxJyKzu4jOG4ll6t19eoIKf2UGg',\n 'DOCUMENT_ROOT': '/home/mycode/ccose_deploy/ccose/',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'bbs.ccose.org',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/accounts/login/',\n 'PATH_TRANSLATED': '/home/mycode/ccose_deploy/ccose/ccose/wsgi.py/accounts/login/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '100.26.140.179',\n 'REMOTE_PORT': '45180',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'http',\n 'REQUEST_URI': '/accounts/login/',\n 'SCRIPT_FILENAME': '/home/mycode/ccose_deploy/ccose/ccose/wsgi.py',\n 'SCRIPT_NAME': u'',\n 'SERVER_ADDR': '192.168.122.253',\n 'SERVER_ADMIN': 'wenyuejie@126.com',\n 'SERVER_NAME': 'bbs.ccose.org',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SIGNATURE': '',\n 'SERVER_SOFTWARE': 'Apache/2.4.6 (CentOS) PHP/7.0.32 mod_wsgi/3.4 Python/2.7.5',\n 'UNIQUE_ID': 'ZgU2-Bw27979AWgv6oOsuAAAAAY',\n 'mod_wsgi.application_group': 'www.ccose.org|',\n 'mod_wsgi.callable_object': 'application',\n 'mod_wsgi.enable_sendfile': '0',\n 'mod_wsgi.handler_script': '',\n 'mod_wsgi.input_chunked': '0',\n 'mod_wsgi.listener_host': '',\n 'mod_wsgi.listener_port': '80',\n 'mod_wsgi.process_group': '',\n 'mod_wsgi.queue_start': '1711617788286391',\n 'mod_wsgi.request_handler': 'wsgi-script',\n 'mod_wsgi.script_reloading': '1',\n 'mod_wsgi.version': (3, 4),\n 'wsgi.errors': <mod_wsgi.Log object at 0x7f4eade6ff30>,\n 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f4eadfaf210>,\n 'wsgi.input': <mod_wsgi.Input object at 0x7f4eade6f830>,\n 'wsgi.multiprocess': True,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
modified | True |
expires_time | 1712827388.371505 |
accessed | True |
response | <django.http.HttpResponseServerError object at 0x7f4eadf84510> |
empty | False |
/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py
in save
"""
Saves the current session data to the database. If 'must_create' is
True, a database error will be raised if the saving operation doesn't
create a *new* entry (as opposed to possibly updating an existing
entry).
"""
if self.session_key is None:
return self.create()...
obj = Session(
session_key=self._get_or_create_session_key(),
session_data=self.encode(self._get_session(no_load=must_create)),
expire_date=self.get_expiry_date()
)
using = router.db_for_write(Session, instance=obj)
Variable | Value |
---|---|
must_create | False |
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f4eadee7f50> |
/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py
in create
return {}
def exists(self, session_key):
return Session.objects.filter(session_key=session_key).exists()
def create(self):
while True:
self._session_key = self._get_new_session_key()...
try:
# Save immediately to ensure we have a unique entry in the
# database.
self.save(must_create=True)
except CreateError:
# Key wasn't unique. Try again.
Variable | Value |
---|---|
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f4eadee7f50> |
/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py
in _get_new_session_key
"Returns session key that isn't being used."
# Todo: move to 0-9a-z charset in 1.5
hex_chars = '1234567890abcdef'
# session_key should not be case sensitive because some backends
# can store it on case insensitive file systems.
while True:
session_key = get_random_string(32, hex_chars)
if not self.exists(session_key):...
break
return session_key
def _get_or_create_session_key(self):
if self._session_key is None:
self._session_key = self._get_new_session_key()
Variable | Value |
---|---|
hex_chars | '1234567890abcdef' |
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f4eadee7f50> |
session_key | '7fc40a9471c95c12c6e9a6f0345e05d2' |
/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/db.py
in exists
)
return self.decode(force_unicode(s.session_data))
except (Session.DoesNotExist, SuspiciousOperation):
self._session_key = None
return {}
def exists(self, session_key):
return Session.objects.filter(session_key=session_key).exists()...
def create(self):
while True:
self._session_key = self._get_new_session_key()
try:
# Save immediately to ensure we have a unique entry in the
Variable | Value |
---|---|
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f4eadee7f50> |
session_key | '7fc40a9471c95c12c6e9a6f0345e05d2' |
/usr/lib/python2.7/site-packages/django/db/models/query.py
in exists
query.add_update_fields(values)
self._result_cache = None
return query.get_compiler(self.db).execute_sql(None)
_update.alters_data = True
def exists(self):
if self._result_cache is None:
return self.query.has_results(using=self.db)...
return bool(self._result_cache)
def _prefetch_related_objects(self):
# This method can only be called once the result cache has been filled.
prefetch_related_objects(self._result_cache, self._prefetch_related_lookups)
self._prefetch_done = True
Variable | Value |
---|---|
self | Error in formatting: no such table: django_session |
/usr/lib/python2.7/site-packages/django/db/models/sql/query.py
in has_results
q.default_cols = False
q.select_related = False
q.set_extra_mask(('a',))
q.set_aggregate_mask(())
q.clear_ordering(True)
q.set_limits(high=1)
compiler = q.get_compiler(using=using)
return bool(compiler.execute_sql(SINGLE))...
def combine(self, rhs, connector):
"""
Merge the 'rhs' query into the current one (with any 'rhs' effects
being applied *after* (that is, "to the right of") anything in the
current query. 'rhs' is not modified during a call to this function.
Variable | Value |
---|---|
q | <django.db.models.sql.query.Query object at 0x7f4eadf84910> |
using | 'default' |
self | <django.db.models.sql.query.Query object at 0x7f4eadf84c10> |
compiler | <django.db.models.sql.compiler.SQLCompiler object at 0x7f4eadf843d0> |
/usr/lib/python2.7/site-packages/django/db/models/sql/compiler.py
in execute_sql
except EmptyResultSet:
if result_type == MULTI:
return empty_iter()
else:
return
cursor = self.connection.cursor()
cursor.execute(sql, params)...
if not result_type:
return cursor
if result_type == SINGLE:
if self.query.ordering_aliases:
return cursor.fetchone()[:-len(self.query.ordering_aliases)]
Variable | Value |
---|---|
cursor | <django.db.backends.util.CursorDebugWrapper object at 0x7f4eadf84c50> |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f4eadf843d0> |
params | ('7fc40a9471c95c12c6e9a6f0345e05d2',) |
result_type | 'single' |
sql | u'SELECT (1) AS "a" FROM "django_session" WHERE "django_session"."session_key" = %s LIMIT 1' |
/usr/lib/python2.7/site-packages/django/db/backends/util.py
in execute
class CursorDebugWrapper(CursorWrapper):
def execute(self, sql, params=()):
self.set_dirty()
start = time()
try:
return self.cursor.execute(sql, params)...
finally:
stop = time()
duration = stop - start
sql = self.db.ops.last_executed_query(self.cursor, sql, params)
self.db.queries.append({
'sql': sql,
Variable | Value |
---|---|
self | <django.db.backends.util.CursorDebugWrapper object at 0x7f4eadf84c50> |
stop | 1711617788.372402 |
start | 1711617788.372317 |
params | ('7fc40a9471c95c12c6e9a6f0345e05d2',) |
sql | u'SELECT (1) AS "a" FROM "django_session" WHERE "django_session"."session_key" = 7fc40a9471c95c12c6e9a6f0345e05d2 LIMIT 1' |
duration | 8.487701416015625e-05 |
/usr/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py
in execute
Django uses "format" style placeholders, but pysqlite2 uses "qmark" style.
This fixes it -- but note that if you want to use a literal "%s" in a query,
you'll need to use "%%s".
"""
def execute(self, query, params=()):
query = self.convert_query(query)
try:
return Database.Cursor.execute(self, query, params)...
except Database.IntegrityError, e:
raise utils.IntegrityError, utils.IntegrityError(*tuple(e)), sys.exc_info()[2]
except Database.DatabaseError, e:
raise utils.DatabaseError, utils.DatabaseError(*tuple(e)), sys.exc_info()[2]
def executemany(self, query, param_list):
Variable | Value |
---|---|
params | ('7fc40a9471c95c12c6e9a6f0345e05d2',) |
self | <django.db.backends.sqlite3.base.SQLiteCursorWrapper object at 0x7f4eadf9e9d0> |
e | OperationalError('no such table: django_session',) |
query | u'SELECT (1) AS "a" FROM "django_session" WHERE "django_session"."session_key" = ? LIMIT 1' |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '80' |
CONTEXT_DOCUMENT_ROOT | '/home/mycode/ccose_deploy/ccose/' |
SERVER_SOFTWARE | 'Apache/2.4.6 (CentOS) PHP/7.0.32 mod_wsgi/3.4 Python/2.7.5' |
CONTEXT_PREFIX | '' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/accounts/login/' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | '' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'bbs.ccose.org' |
REMOTE_ADDR | '100.26.140.179' |
mod_wsgi.queue_start | '1711617788286391' |
mod_wsgi.request_handler | 'wsgi-script' |
wsgi.url_scheme | 'http' |
PATH_TRANSLATED | '/home/mycode/ccose_deploy/ccose/ccose/wsgi.py/accounts/login/' |
SERVER_PORT | '80' |
wsgi.multiprocess | True |
mod_wsgi.input_chunked | '0' |
SERVER_ADDR | '192.168.122.253' |
DOCUMENT_ROOT | '/home/mycode/ccose_deploy/ccose/' |
mod_wsgi.process_group | '' |
SCRIPT_FILENAME | '/home/mycode/ccose_deploy/ccose/ccose/wsgi.py' |
SERVER_ADMIN | 'wenyuejie@126.com' |
wsgi.input | <mod_wsgi.Input object at 0x7f4eade6f830> |
HTTP_HOST | 'bbs.ccose.org' |
SCRIPT_NAME | u'' |
wsgi.multithread | False |
mod_wsgi.callable_object | 'application' |
REQUEST_URI | '/accounts/login/' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
wsgi.run_once | False |
wsgi.errors | <mod_wsgi.Log object at 0x7f4eade6ff30> |
REMOTE_PORT | '45180' |
mod_wsgi.listener_host | '' |
REQUEST_SCHEME | 'http' |
mod_wsgi.version | (3, 4) |
mod_wsgi.application_group | 'www.ccose.org|' |
mod_wsgi.script_reloading | '1' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | '0bloUYxJyKzu4jOG4ll6t19eoIKf2UGg' |
UNIQUE_ID | 'ZgU2-Bw27979AWgv6oOsuAAAAAY' |
ccose.settings
Setting | Value |
---|---|
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'zh_CN' |
ROOT_URLCONF | 'ccose.urls' |
MANAGERS | () |
DEFAULT_CHARSET | 'utf-8' |
STATIC_ROOT | '/home/mycode/ccose_deploy/ccose/static' |
ALLOWED_HOSTS | [] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
FILE_UPLOAD_PERMISSIONS | None |
URL_VALIDATOR_USER_AGENT | 'Django/1.4.22 (https://www.djangoproject.com)' |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/home/mycode/ccose_deploy/ccose/ccose.db', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': ''}} |
SERVER_EMAIL | 'root@localhost' |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': ''}} |
SESSION_COOKIE_PATH | '/' |
USE_X_FORWARDED_HOST | False |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
SEND_BROKEN_LINK_EMAILS | False |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | 'ccose.wsgi.application' |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
FORCE_SCRIPT_NAME | None |
CACHE_BACKEND | 'locmem://' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
SESSION_FILE_PATH | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'articles', 'notices', 'registration', 'kindeditor', 'django.contrib.admin') |
LANGUAGES | (('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan 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'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('pa', 'Punjabi'), ('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'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | (('css', '/home/mycode/ccose_deploy/ccose/static/css'), ('js', '/home/mycode/ccose_deploy/ccose/static/js'), ('images', '/home/mycode/ccose_deploy/ccose/static/images')) |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
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') |
CSRF_COOKIE_NAME | 'csrftoken' |
EMAIL_HOST_PASSWORD | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
HERE | '/home/mycode/ccose_deploy/ccose/ccose' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/home/mycode/ccose_deploy/ccose/media' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | () |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
DECIMAL_SEPARATOR | '.' |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'Asia/Shanghai' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'ccose.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
TEMPLATE_STRING_IF_INVALID | '' |
DATETIME_INPUT_FORMATS | ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y') |
EMAIL_HOST_USER | '' |
PROFANITIES_LIST | u'********************' |
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.