unable to open database file
Request Method: | GET |
---|---|
Request URL: | http://lopen.linguistics.ntu.edu.tw/lope.anno/account/signout/ |
Django Version: | 1.7.4 |
Exception Type: | OperationalError |
Exception Value: | unable to open database file |
Exception Location: | /usr/local/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py in get_new_connection, line 374 |
Python Executable: | /usr/local/bin/uwsgi |
Python Version: | 3.4.3 |
Python Path: | ['.', '', '/usr/local/lib/python34.zip', '/usr/local/lib/python3.4', '/usr/local/lib/python3.4/plat-linux', '/usr/local/lib/python3.4/lib-dynload', '/usr/local/lib/python3.4/site-packages'] |
Server time: | Fri, 29 Mar 2024 19:42:44 +0800 |
/usr/local/lib/python3.4/site-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
# If the view raised an exception, run it through exception
# middleware, and if the exception middleware returns a
# response, use that. Otherwise, reraise the exception.
for middleware_method in self._exception_middleware:
response = middleware_method(request, e)
Variable | Value |
---|---|
wrapped_callback | <function signout at 0x7f81359a2488> |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f81359c82e8>> |
response | None |
callback_kwargs | {} |
urlconf | 'core.urls' |
request | ('<WSGIRequest\n' 'path:/lope.anno/account/signout/,\n' 'GET:<QueryDict: {}>,\n' 'POST:<QueryDict: {}>,\n' 'COOKIES:{},\n' "META:{'CSRF_COOKIE': 'siiA8DuMtvxQNnZuSZZjkKV29eIpq9L5',\n" " 'HTTP_ACCEPT': '*/*',\n" " 'HTTP_CONNECTION': 'close',\n" " 'HTTP_HOST': 'lopen.linguistics.ntu.edu.tw',\n" " 'HTTP_USER_AGENT': 'claudebot',\n" " 'PATH_INFO': '/lope.anno/account/signout/',\n" " 'QUERY_STRING': '',\n" " 'REMOTE_ADDR': '172.21.0.1',\n" " 'REMOTE_PORT': '22665',\n" " 'REQUEST_METHOD': 'GET',\n" " 'REQUEST_URI': '/lope.anno/account/signout/',\n" " 'SCRIPT_NAME': '',\n" " 'SERVER_NAME': '7d264c774063',\n" " 'SERVER_PORT': '8001',\n" " 'SERVER_PROTOCOL': 'HTTP/1.0',\n" " 'UWSGI_ROUTER': 'http',\n" " 'uwsgi.node': b'7d264c774063',\n" " 'uwsgi.version': b'2.0.17',\n" " 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>,\n" " 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n" " 'wsgi.input': <uwsgi._Input object at 0x7f8135fa4498>,\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 signout at 0x7f81359a2488> |
resolver | <RegexURLResolver 'core.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=<function signout at 0x7f81359a2488>, args=(), kwargs={}, url_name='signout', app_name='None', namespace='') |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f8136af8b38> |
callback_args | () |
/usr/local/lib/python3.4/site-packages/django/contrib/auth/__init__.py
in logout
user = None
user_logged_out.send(sender=user.__class__, request=request, user=user)
# remember language choice saved to session
# for backwards compatibility django_language is also checked (remove in 1.8)
language = request.session.get(LANGUAGE_SESSION_KEY, request.session.get('django_language'))
request.session.flush()...
if language is not None:
request.session[LANGUAGE_SESSION_KEY] = language
if hasattr(request, 'user'):
from django.contrib.auth.models import AnonymousUser
Variable | Value |
---|---|
user | None |
request | ('<WSGIRequest\n' 'path:/lope.anno/account/signout/,\n' 'GET:<QueryDict: {}>,\n' 'POST:<QueryDict: {}>,\n' 'COOKIES:{},\n' "META:{'CSRF_COOKIE': 'siiA8DuMtvxQNnZuSZZjkKV29eIpq9L5',\n" " 'HTTP_ACCEPT': '*/*',\n" " 'HTTP_CONNECTION': 'close',\n" " 'HTTP_HOST': 'lopen.linguistics.ntu.edu.tw',\n" " 'HTTP_USER_AGENT': 'claudebot',\n" " 'PATH_INFO': '/lope.anno/account/signout/',\n" " 'QUERY_STRING': '',\n" " 'REMOTE_ADDR': '172.21.0.1',\n" " 'REMOTE_PORT': '22665',\n" " 'REQUEST_METHOD': 'GET',\n" " 'REQUEST_URI': '/lope.anno/account/signout/',\n" " 'SCRIPT_NAME': '',\n" " 'SERVER_NAME': '7d264c774063',\n" " 'SERVER_PORT': '8001',\n" " 'SERVER_PROTOCOL': 'HTTP/1.0',\n" " 'UWSGI_ROUTER': 'http',\n" " 'uwsgi.node': b'7d264c774063',\n" " 'uwsgi.version': b'2.0.17',\n" " 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>,\n" " 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n" " 'wsgi.input': <uwsgi._Input object at 0x7f8135fa4498>,\n" " 'wsgi.multiprocess': True,\n" " 'wsgi.multithread': False,\n" " 'wsgi.run_once': False,\n" " 'wsgi.url_scheme': 'http',\n" " 'wsgi.version': (1, 0)}>") |
language | None |
/usr/local/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py
in flush
def flush(self):
"""
Removes the current session data from the database and regenerates the
key.
"""
self.clear()
self.delete()
self.create()...
def cycle_key(self):
"""
Creates a new session key, whilst retaining the current session data.
"""
data = self._session_cache
Variable | Value |
---|---|
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f8134b14128> |
/usr/local/lib/python3.4/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 0x7f8134b14128> |
/usr/local/lib/python3.4/site-packages/django/contrib/sessions/backends/base.py
in _get_new_session_key
self.accessed = True
self.modified = True
def _get_new_session_key(self):
"Returns session key that isn't being used."
while True:
session_key = get_random_string(32, VALID_KEY_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 |
---|---|
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f8134b14128> |
session_key | '15nfasgxhq75qa3xiczu6qe0t2ic6vnn' |
/usr/local/lib/python3.4/site-packages/django/contrib/sessions/backends/db.py
in exists
logger = logging.getLogger('django.security.%s' %
e.__class__.__name__)
logger.warning(force_text(e))
self.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
Variable | Value |
---|---|
self | <django.contrib.sessions.backends.db.SessionStore object at 0x7f8134b14128> |
session_key | '15nfasgxhq75qa3xiczu6qe0t2ic6vnn' |
/usr/local/lib/python3.4/site-packages/django/db/models/query.py
in exists
self._result_cache = None
return query.get_compiler(self.db).execute_sql(CURSOR)
_update.alters_data = True
_update.queryset_only = False
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: unable to open database file |
/usr/local/lib/python3.4/site-packages/django/db/models/sql/query.py
in has_results
def has_results(self, using):
q = self.clone()
if not q.distinct:
q.clear_select_clause()
q.clear_ordering(True)
q.set_limits(high=1)
compiler = q.get_compiler(using=using)
return compiler.has_results()...
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 |
---|---|
compiler | <django.db.models.sql.compiler.SQLCompiler object at 0x7f8134b14438> |
self | <django.db.models.sql.query.Query object at 0x7f8134b14470> |
q | <django.db.models.sql.query.Query object at 0x7f8134b14208> |
using | 'default' |
/usr/local/lib/python3.4/site-packages/django/db/models/sql/compiler.py
in has_results
"""
Backends (e.g. NoSQL) can override this in order to use optimized
versions of "query has any results."
"""
# This is always executed on a query clone, so we can modify self.query
self.query.add_extra({'a': 1}, None, None, None, None, None)
self.query.set_extra_mask(['a'])
return bool(self.execute_sql(SINGLE))...
def execute_sql(self, result_type=MULTI):
"""
Run the query against the database and returns the result(s). The
return value is a single data item if result_type is SINGLE, or an
iterator over the results if the result_type is MULTI.
Variable | Value |
---|---|
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f8134b14438> |
/usr/local/lib/python3.4/site-packages/django/db/models/sql/compiler.py
in execute_sql
raise EmptyResultSet
except EmptyResultSet:
if result_type == MULTI:
return iter([])
else:
return
cursor = self.connection.cursor()...
try:
cursor.execute(sql, params)
except Exception:
cursor.close()
raise
Variable | Value |
---|---|
result_type | 'single' |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f8134b14438> |
params | ('15nfasgxhq75qa3xiczu6qe0t2ic6vnn',) |
sql | ('SELECT (1) AS "a" FROM "django_session" WHERE ' '"django_session"."session_key" = %s LIMIT 1') |
/usr/local/lib/python3.4/site-packages/django/db/backends/__init__.py
in cursor
def cursor(self):
"""
Creates a cursor, opening a connection if necessary.
"""
self.validate_thread_sharing()
if self.queries_logged:
cursor = self.make_debug_cursor(self._cursor())...
else:
cursor = utils.CursorWrapper(self._cursor(), self)
return cursor
def commit(self):
"""
Variable | Value |
---|---|
self | <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x7f81365b4cf8> |
/usr/local/lib/python3.4/site-packages/django/db/backends/__init__.py
in _cursor
if self.connection is None:
with self.wrap_database_errors:
self.connect()
##### Backend-specific wrappers for PEP-249 connection methods #####
def _cursor(self):
self.ensure_connection()...
with self.wrap_database_errors:
return self.create_cursor()
def _commit(self):
if self.connection is not None:
with self.wrap_database_errors:
Variable | Value |
---|---|
self | <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x7f81365b4cf8> |
/usr/local/lib/python3.4/site-packages/django/db/backends/__init__.py
in ensure_connection
def ensure_connection(self):
"""
Guarantees that a connection to the database is established.
"""
if self.connection is None:
with self.wrap_database_errors:
self.connect()...
##### Backend-specific wrappers for PEP-249 connection methods #####
def _cursor(self):
self.ensure_connection()
with self.wrap_database_errors:
Variable | Value |
---|---|
self | <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x7f81365b4cf8> |
/usr/local/lib/python3.4/site-packages/django/db/utils.py
in __exit__
if issubclass(exc_type, db_exc_type):
dj_exc_value = dj_exc_type(*exc_value.args)
dj_exc_value.__cause__ = exc_value
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
six.reraise(dj_exc_type, dj_exc_value, traceback)...
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
Variable | Value |
---|---|
db_exc_type | <class 'sqlite3.OperationalError'> |
self | <django.db.utils.DatabaseErrorWrapper object at 0x7f813504d2b0> |
traceback | <traceback object at 0x7f8134b05408> |
dj_exc_value | OperationalError('unable to open database file',) |
exc_value | OperationalError('unable to open database file',) |
exc_type | <class 'sqlite3.OperationalError'> |
dj_exc_type | <class 'django.db.utils.OperationalError'> |
/usr/local/lib/python3.4/site-packages/django/utils/six.py
in reraise
exec_ = getattr(moves.builtins, "exec")
def reraise(tp, value, tb=None):
if value is None:
value = tp()
if value.__traceback__ is not tb:
raise value.with_traceback(tb)...
raise value
else:
def exec_(_code_, _globs_=None, _locs_=None):
"""Execute code in a namespace."""
if _globs_ is None:
Variable | Value |
---|---|
tb | <traceback object at 0x7f8134b05408> |
value | OperationalError('unable to open database file',) |
tp | <class 'django.db.utils.OperationalError'> |
/usr/local/lib/python3.4/site-packages/django/db/backends/__init__.py
in ensure_connection
def ensure_connection(self):
"""
Guarantees that a connection to the database is established.
"""
if self.connection is None:
with self.wrap_database_errors:
self.connect()...
##### Backend-specific wrappers for PEP-249 connection methods #####
def _cursor(self):
self.ensure_connection()
with self.wrap_database_errors:
Variable | Value |
---|---|
self | <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x7f81365b4cf8> |
/usr/local/lib/python3.4/site-packages/django/db/backends/__init__.py
in connect
# Reset parameters defining when to close the connection
max_age = self.settings_dict['CONN_MAX_AGE']
self.close_at = None if max_age is None else time.time() + max_age
self.closed_in_transaction = False
self.errors_occurred = False
# Establish the connection
conn_params = self.get_connection_params()
self.connection = self.get_new_connection(conn_params)...
self.set_autocommit(self.settings_dict['AUTOCOMMIT'])
self.init_connection_state()
connection_created.send(sender=self.__class__, connection=self)
def ensure_connection(self):
"""
Variable | Value |
---|---|
conn_params | {'check_same_thread': False, 'database': './db.sqlite3', 'detect_types': 3} |
self | <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x7f81365b4cf8> |
max_age | 0 |
/usr/local/lib/python3.4/site-packages/django/db/backends/sqlite3/base.py
in get_new_connection
'for controlling thread shareability.',
RuntimeWarning
)
kwargs.update({'check_same_thread': False})
return kwargs
def get_new_connection(self, conn_params):
conn = Database.connect(**conn_params)...
conn.create_function("django_date_extract", 2, _sqlite_date_extract)
conn.create_function("django_date_trunc", 2, _sqlite_date_trunc)
conn.create_function("django_datetime_extract", 3, _sqlite_datetime_extract)
conn.create_function("django_datetime_trunc", 3, _sqlite_datetime_trunc)
conn.create_function("regexp", 2, _sqlite_regexp)
conn.create_function("django_format_dtdelta", 5, _sqlite_format_dtdelta)
Variable | Value |
---|---|
conn_params | {'check_same_thread': False, 'database': './db.sqlite3', 'detect_types': 3} |
self | <django.db.backends.sqlite3.base.DatabaseWrapper object at 0x7f81365b4cf8> |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.version | (1, 0) |
HTTP_ACCEPT | '*/*' |
wsgi.multithread | False |
uwsgi.version | b'2.0.17' |
wsgi.run_once | False |
wsgi.file_wrapper | '' |
HTTP_CONNECTION | 'close' |
SERVER_PORT | '8001' |
wsgi.input | <uwsgi._Input object at 0x7f8135fa4498> |
SERVER_PROTOCOL | 'HTTP/1.0' |
wsgi.url_scheme | 'http' |
REMOTE_PORT | '22665' |
HTTP_HOST | 'lopen.linguistics.ntu.edu.tw' |
REQUEST_URI | '/lope.anno/account/signout/' |
uwsgi.node | b'7d264c774063' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | '7d264c774063' |
PATH_INFO | '/lope.anno/account/signout/' |
QUERY_STRING | '' |
REQUEST_METHOD | 'GET' |
REMOTE_ADDR | '172.21.0.1' |
SCRIPT_NAME | '' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
CSRF_COOKIE | 'siiA8DuMtvxQNnZuSZZjkKV29eIpq9L5' |
UWSGI_ROUTER | 'http' |
wsgi.multiprocess | True |
core.settings
Setting | Value |
---|---|
DECIMAL_SEPARATOR | '.' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
MEDIA_ROOT | '' |
TIME_ZONE | 'Asia/Taipei' |
MEDIA_URL | '' |
LOCALE_PATHS | () |
SESSION_COOKIE_NAME | 'sessionid' |
CSRF_COOKIE_PATH | '/' |
TEMPLATE_DIRS | ('./annotator/templates', './utility/templates', './analysis/templates', './account/templates', './templates') |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
SESSION_COOKIE_SECURE | False |
USE_I18N | True |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
BASE_DIR | '.' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
LOGOUT_URL | '/accounts/logout/' |
DEFAULT_TABLESPACE | '' |
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') |
INSTALLED_APPS | ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'annotator', 'utility', 'analysis', 'account') |
SETTINGS_MODULE | 'core.settings' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
DEFAULT_CONTENT_TYPE | 'text/html' |
FIRST_DAY_OF_WEEK | 0 |
NUMBER_GROUPING | 0 |
SEND_BROKEN_LINK_EMAILS | False |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CSRF_COOKIE_NAME | 'csrftoken' |
RLITE_DB_PATH | './dbs' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
TEMPLATE_DEBUG | True |
TEMPLATE_CONTEXT_PROCESSORS | ('django.core.context_processors.request', 'django.contrib.auth.context_processors.auth') |
WSGI_APPLICATION | 'core.wsgi.application' |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
USER_DB_PATH | './user_dbs/%s.db' |
SESSION_CACHE_ALIAS | 'default' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CSRF_COOKIE_DOMAIN | None |
STATIC_ROOT | None |
CSRF_COOKIE_AGE | 31449600 |
APPEND_SLASH | True |
USE_ETAGS | False |
ABSOLUTE_URL_OVERRIDES | {} |
STATIC_URL | '/static_lopeanno/' |
EMAIL_USE_SSL | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': './db.sqlite3', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'UTC', 'USER': ''}} |
EMAIL_HOST | 'localhost' |
USE_X_FORWARDED_HOST | False |
TIME_FORMAT | 'P' |
DATE_FORMAT | 'N j, Y' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
TRANSACTIONS_MANAGED | False |
ROOT_URLCONF | 'core.urls' |
EMAIL_HOST_PASSWORD | '********************' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
MANAGERS | () |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
LANGUAGE_COOKIE_DOMAIN | None |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
SERVER_EMAIL | 'root@localhost' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
LOGIN_URL | '/accounts/login/' |
FORCE_SCRIPT_NAME | None |
ALLOWED_HOSTS | ['140.112.147.131'] |
SESSION_SAVE_EVERY_REQUEST | False |
COMMENTS_ALLOW_PROFANITIES | False |
DATABASE_ROUTERS | [] |
CSRF_COOKIE_SECURE | False |
CSRF_COOKIE_HTTPONLY | False |
DEFAULT_INDEX_TABLESPACE | '' |
SESSION_COOKIE_PATH | '/' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
THOUSAND_SEPARATOR | ',' |
SESSION_COOKIE_AGE | 1209600 |
TEST_NON_SERIALIZED_APPS | [] |
SESSION_COOKIE_DOMAIN | None |
EMAIL_HOST_USER | '' |
ADMINS | () |
INTERNAL_IPS | () |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TAG_PATH | './annotator/ref.json' |
FIXTURE_DIRS | () |
PROFANITIES_LIST | '********************' |
INSTALLED_APPS_LOCAL | ('annotator', 'utility', 'analysis', 'account') |
CACHE_MIDDLEWARE_ALIAS | 'default' |
YEAR_MONTH_FORMAT | 'F Y' |
SESSION_COOKIE_HTTPONLY | True |
FILE_UPLOAD_PERMISSIONS | None |
LANGUAGE_CODE | 'en-us' |
STATICFILES_DIRS | ('./static',) |
DATETIME_FORMAT | 'N j, Y, P' |
USE_THOUSAND_SEPARATOR | False |
FILE_CHARSET | 'utf-8' |
EMAIL_PORT | 25 |
MIDDLEWARE_CLASSES | ('django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware') |
SESSION_FILE_PATH | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
TEMPLATE_STRING_IF_INVALID | '' |
USE_TZ | True |
LANGUAGE_COOKIE_AGE | None |
IGNORABLE_404_URLS | () |
EMAIL_USE_TLS | False |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
PREPEND_WWW | False |
LOGGING_CONFIG | 'logging.config.dictConfig' |
SILENCED_SYSTEM_CHECKS | [] |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
FORMAT_MODULE_PATH | None |
ADMIN_FOR | () |
DEFAULT_CHARSET | 'utf-8' |
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') |
DISALLOWED_USER_AGENTS | () |
SECRET_KEY | '********************' |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('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'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese'), ('zh-tw', 'Traditional Chinese')) |
AUTH_USER_MODEL | 'auth.User' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
CACHE_MIDDLEWARE_SECONDS | 600 |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
MIGRATION_MODULES | {} |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | '********************' |
USE_L10N | True |
LANGUAGE_COOKIE_PATH | '/' |
ALLOWED_INCLUDE_ROOTS | () |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
LOGGING | {'handlers': {'console': {'class': 'logging.StreamHandler', 'level': 'DEBUG'}}, 'loggers': {'django.request': {'handlers': ['console'], 'level': 'ERROR', 'propagate': False}}, 'version': 1} |
MONTH_DAY_FORMAT | 'F j' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEBUG | True |
SHORT_DATE_FORMAT | 'm/d/Y' |
SECURE_PROXY_SSL_HEADER | None |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
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.