name 'FOO' is not defined
Request Method: | GET |
---|---|
Request URL: | https://wpbeta.jpl.nasa.gov/ |
Django Version: | 1.10 |
Exception Type: | NameError |
Exception Value: | name 'FOO' is not defined |
Exception Location: | urls.py in <module>, line 8 |
Python Executable: | /websites/wpbeta/private/venvs/2.7.5_centos7/bin/python |
Python Version: | 2.7.5 |
Python Path: | ['', '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python27.zip', '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7', '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/plat-linux2', '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/lib-tk', '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/lib-old', '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/lib-dynload', '/opt/python/lib/python2.7', '/opt/python/lib/python2.7/plat-linux2', '/opt/python/lib/python2.7/lib-tk', '/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages'] |
Server time: | Tue, 8 Jan 2019 11:53:23 -0800 |
/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
response = self._middleware_chain(request)
# This block is only needed for legacy MIDDLEWARE_CLASSES; if
# MIDDLEWARE is used, self._response_middleware will be empty.
try:
# Apply response middleware, regardless of the response
for middleware_method in self._response_middleware:
response = middleware_method(request, response)...
# Complain if the response middleware returned None (a common error).
if response is None:
raise ValueError(
"%s.process_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__))
Variable | Value |
---|---|
middleware_method | <bound method LocaleMiddleware.process_response of <django.middleware.locale.LocaleMiddleware object at 0x3b52510>> |
request | <WSGIRequest: GET '/'> |
response | <HttpResponse status_code=500, "text/html"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x328b210> |
/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages/django/middleware/locale.py
in process_response
translation.activate(language)
request.LANGUAGE_CODE = translation.get_language()
def process_response(self, request, response):
language = translation.get_language()
language_from_path = translation.get_language_from_path(request.path_info)
urlconf = getattr(request, 'urlconf', settings.ROOT_URLCONF)
i18n_patterns_used, prefixed_default_language = is_language_prefix_patterns_used(urlconf)...
if response.status_code == 404 and not language_from_path and i18n_patterns_used:
language_path = '/%s%s' % (language, request.path_info)
path_valid = is_valid_path(language_path, urlconf)
path_needs_slash = (
not path_valid and (
Variable | Value |
---|---|
language | 'en' |
language_from_path | None |
request | <WSGIRequest: GET '/'> |
response | <HttpResponse status_code=500, "text/html"> |
self | <django.middleware.locale.LocaleMiddleware object at 0x3b52510> |
urlconf | 'urls' |
/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages/django/utils/lru_cache.py
in wrapper
def wrapper(*args, **kwds):
# simple caching without ordering or size limit
key = make_key(args, kwds, typed)
result = cache_get(key, root) # root used here as a unique not-found sentinel
if result is not root:
stats[HITS] += 1
return result
result = user_function(*args, **kwds)...
cache[key] = result
stats[MISSES] += 1
return result
else:
Variable | Value |
---|---|
HITS | 0 |
MISSES | 1 |
args | ('urls',) |
cache | {} |
cache_get | <built-in method get of dict object at 0x3b42510> |
key | 'urls' |
kwds | {} |
make_key | <function _make_key at 0x7f4196ec1668> |
result | [<Recursion on list with id=60495416>, <Recursion on list with id=60495416>, None, None] |
root | [<Recursion on list with id=60495416>, <Recursion on list with id=60495416>, None, None] |
stats | [0, 0] |
typed | False |
user_function | <function is_language_prefix_patterns_used at 0x3b59410> |
/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages/django/conf/urls/i18n.py
in is_language_prefix_patterns_used
def is_language_prefix_patterns_used(urlconf):
"""
Return a tuple of two booleans: (
`True` if LocaleRegexURLResolver` is used in the `urlconf`,
`True` if the default language should be prefixed
)
"""
for url_pattern in get_resolver(urlconf).url_patterns:...
if isinstance(url_pattern, LocaleRegexURLResolver):
return True, url_pattern.prefix_default_language
return False, False
urlpatterns = [
Variable | Value |
---|---|
urlconf | 'urls' |
/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages/django/utils/functional.py
in __get__
self.func = func
self.__doc__ = getattr(func, '__doc__')
self.name = name or func.__name__
def __get__(self, instance, cls=None):
if instance is None:
return self
res = instance.__dict__[self.name] = self.func(instance)...
return res
class Promise(object):
"""
This is just a base class for the proxy class created in
Variable | Value |
---|---|
cls | <class 'django.urls.resolvers.RegexURLResolver'> |
instance | <RegexURLResolver 'urls' (None:None) ^/> |
self | <django.utils.functional.cached_property object at 0x2f46790> |
/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages/django/urls/resolvers.py
in url_patterns
return import_module(self.urlconf_name)
else:
return self.urlconf_name
@cached_property
def url_patterns(self):
# urlconf_module might be a valid set of patterns, so we default to it
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)...
try:
iter(patterns)
except TypeError:
msg = (
"The included URLconf '{name}' does not appear to have any "
"patterns in it. If you see valid patterns in the file then "
Variable | Value |
---|---|
self | <RegexURLResolver 'urls' (None:None) ^/> |
/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages/django/utils/functional.py
in __get__
self.func = func
self.__doc__ = getattr(func, '__doc__')
self.name = name or func.__name__
def __get__(self, instance, cls=None):
if instance is None:
return self
res = instance.__dict__[self.name] = self.func(instance)...
return res
class Promise(object):
"""
This is just a base class for the proxy class created in
Variable | Value |
---|---|
cls | <class 'django.urls.resolvers.RegexURLResolver'> |
instance | <RegexURLResolver 'urls' (None:None) ^/> |
self | <django.utils.functional.cached_property object at 0x2f46750> |
/websites/wpbeta/private/venvs/2.7.5_centos7/lib/python2.7/site-packages/django/urls/resolvers.py
in urlconf_module
tried.append([pattern])
raise Resolver404({'tried': tried, 'path': new_path})
raise Resolver404({'path': path})
@cached_property
def urlconf_module(self):
if isinstance(self.urlconf_name, six.string_types):
return import_module(self.urlconf_name)...
else:
return self.urlconf_name
@cached_property
def url_patterns(self):
# urlconf_module might be a valid set of patterns, so we default to it
Variable | Value |
---|---|
self | <RegexURLResolver 'urls' (None:None) ^/> |
/opt/python/lib/python2.7/importlib/__init__.py
in import_module
raise TypeError("relative imports require the 'package' argument")
level = 0
for character in name:
if character != '.':
break
level += 1
name = _resolve_name(name[level:], package, level)
__import__(name)...
return sys.modules[name]
Variable | Value |
---|---|
name | 'urls' |
package | None |
urls.py
in <module>
from django.conf.urls import include, url # NOQA
import django.contrib.auth.views
from django.contrib import admin
from django.contrib.auth.decorators import login_required
from django.conf import settings
import jpluser.views
FOO...
urlpatterns = []
#if settings.USING_DEBUG_TOOLBAR:
# import debug_toolbar
# urlpatterns += [url(r'^__debug__/', include(debug_toolbar.urls))]
urlpatterns += [
url(r'^login/', jpluser.views.custom_login, name='user_login'),
Variable | Value |
---|---|
__builtins__ | {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'Exception': <type 'exceptions.Exception'>, 'False': False, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'IOError': <type 'exceptions.IOError'>, 'ImportError': <type 'exceptions.ImportError'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'IndentationError': <type 'exceptions.IndentationError'>, 'IndexError': <type 'exceptions.IndexError'>, 'KeyError': <type 'exceptions.KeyError'>, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'LookupError': <type 'exceptions.LookupError'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'NameError': <type 'exceptions.NameError'>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'OSError': <type 'exceptions.OSError'>, 'OverflowError': <type 'exceptions.OverflowError'>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'StandardError': <type 'exceptions.StandardError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'SystemError': <type 'exceptions.SystemError'>, 'SystemExit': <type 'exceptions.SystemExit'>, 'TabError': <type 'exceptions.TabError'>, 'True': True, 'TypeError': <type 'exceptions.TypeError'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'ValueError': <type 'exceptions.ValueError'>, 'Warning': <type 'exceptions.Warning'>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', '__package__': None, 'abs': <built-in function abs>, 'all': <built-in function all>, 'any': <built-in function any>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bin': <built-in function bin>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'bytearray': <type 'bytearray'>, 'bytes': <type 'str'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2013 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in ... <trimmed 6324 bytes string> |
__doc__ | None |
__file__ | None |
__name__ | None |
__package__ | None |
admin | None |
django | None |
include | None |
jpluser | None |
login_required | None |
settings | None |
url | None |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
AJP_LOCAL_ADDR | '192.168.21.115' |
AJP_REMOTE_PORT | '46080' |
CONTENT_LENGTH | '0' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'wpbeta.jpl.nasa.gov' |
HTTP_USER_AGENT | 'curl/7.29.0' |
JK_LB_ACTIVATION | 'ACT' |
PATH_INFO | u'/' |
QUERY_STRING | '' |
REMOTE_ADDR | '128.149.125.131' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/' |
SCRIPT_NAME | u'' |
SERVER_NAME | 'wpbeta.jpl.nasa.gov' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
wsgi.errors | <open file '<stderr>', mode 'w' at 0x7f4196fd91e0> |
wsgi.file_wrapper | '' |
wsgi.input | <_wsgisup.InputStream object at 0x3869ae8> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['wholeparts-beta', 'wholeparts-beta.jpl.nasa.gov'] |
APPEND_SLASH | True |
APPLICATION_EXTENDED_TITLE | 'Whole Parts' |
APPLICATION_HELP_EMAIL | 'wholeparts.siteadmins@jpl.nasa.gov' |
APPLICATION_MAIN_TITLE | 'Whole Parts' |
APPLICATION_TIMESTAMP | 'Jan 07, 2019' |
APPLICATION_TITLE_URL | '/' |
AUTHENTICATION_BACKENDS | ('django_auth_ldap.backend.LDAPBackend', 'django.contrib.auth.backends.ModelBackend') |
AUTH_LDAP_GROUP_SEARCH | <django_auth_ldap.config.LDAPSearch object at 0x325f890> |
AUTH_LDAP_GROUP_TYPE | <django_auth_ldap.config.GroupOfUniqueNamesType object at 0x325f990> |
AUTH_LDAP_SERVER_URI | 'ldaps://ldap.jpl.nasa.gov:636' |
AUTH_LDAP_USER_ATTR_MAP | {'badge_number': 'jplbadgenumber', 'directorate_level_number': 'jplinstorglevel1', 'division_level_number': 'jplinstorglevel2', 'email': 'mail', 'employment_status': 'jplorganizationalstatus', 'first_name': 'givenName', 'group_level_number': 'jplinstorglevel4', 'last_name': 'sn', 'management_title': 'jplmanagementtitle', 'organization': 'departmentnumber', 'section_level_number': 'jplinstorglevel3', 'supervisor': 'jplmanagerempno', 'work_phone': 'telephonenumber'} |
AUTH_LDAP_USER_DN_TEMPLATE | 'uid=%(user)s,ou=personnel,dc=dir,dc=jpl,dc=nasa,dc=gov' |
AUTH_LDAP_USER_FLAGS_BY_GROUP | {'is_staff': ['cn=wholeparts.sitestaff,ou=personnel,dc=dir,dc=jpl,dc=nasa,dc=gov'], 'is_superuser': ['cn=wholeparts.siteadmins,ou=personnel,dc=dir,dc=jpl,dc=nasa,dc=gov']} |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | 'jpluser.JplUser' |
BASE_DIR | '/websites/wpbeta/private/app/src' |
BUILD_VERSION | '1.0.0-15-gb20e3fcz\n' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | u'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CMS_PERMISSION | True |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | u'csrftoken' |
CSRF_COOKIE_PATH | u'/' |
CSRF_COOKIE_SECURE | True |
CSRF_FAILURE_VIEW | u'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | u'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': True, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'web-mysql01.jpl.nasa.gov', 'NAME': 'wpbeta_testrun0', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'wpbeta_user'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | u'N j, Y, P' |
DATETIME_INPUT_FORMATS | [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] |
DATE_FORMAT | u'N j, Y' |
DATE_INPUT_FORMATS | [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] |
DB_PASSWORD | u'********************' |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | u'.' |
DEFAULT_CHARSET | u'utf-8' |
DEFAULT_CONTENT_TYPE | u'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | u'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | u'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | u'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | u'' |
DEFAULT_TABLESPACE | u'' |
DEPLOY_TIME | datetime.datetime(2019, 1, 7, 18, 27, 45, 373286) |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | u'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | u'localhost' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | u'' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | u'********************' |
EMAIL_SUBJECT_PREFIX | u'[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILER_DEBUG | True |
FILE_CHARSET | u'utf-8' |
FILE_DATA_DIR | 'data/' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['djangosecure', 'djangocms_admin_style', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'jpluser', 'wholeparts', 'mptt', 'django_extensions', 'django_cleanup', 'widget_tweaks'] |
INTERNAL_IPS | [] |
LANGUAGES | [('en', 'English')] |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'en' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'formatters': {'simple': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '[%(asctime)s] %(levelname)s %(message)s'}, 'verbose': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '[%(asctime)s] %(levelname)s [%(name)s.%(funcName)s:%(lineno)d] %(message)s'}}, 'handlers': {'api_logfile': u'********************', 'file': {'class': 'logging.handlers.TimedRotatingFileHandler', 'filename': '/websites/wpbeta/private/logs/app.log', 'formatter': 'verbose', 'level': 'DEBUG'}}, 'loggers': {'api_logger': u'********************', 'django': {'handlers': ['file'], 'level': 'WARNING', 'propagate': True}, 'wholeparts': {'handlers': ['file'], 'level': 'WARNING'}}, 'version': 1} |
LOGGING_CONFIG | u'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | u'/accounts/profile/' |
LOGIN_URL | '/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MAX_EXCEL_UPLOAD_SIZE_BYTES | 26214400 |
MAX_FILE_UPLOAD_SIZE_BYTES | 209715200 |
MAX_IMPORT_ROWS | 1000 |
MEDIA_ROOT | '/websites/wpbeta/www/media' |
MEDIA_URL | '/media/' |
MEGA_BYTE | 1048576 |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | ['djangosecure.middleware.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {'menus': 'menus.migrations_django', 'wholeparts': 'wholeparts.migrations'} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PREPEND_WWW | False |
PROJECT_DIR | Path('') |
PROJECT_NAME | 'wholeparts' |
ROOT_URLCONF | 'urls' |
SECRET_KEY | u'********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_FRAME_DENY | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | True |
SERVER_EMAIL | u'root@localhost' |
SESSION_CACHE_ALIAS | u'default' |
SESSION_COOKIE_AGE | 13900 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | u'sessionid' |
SESSION_COOKIE_PATH | u'/' |
SESSION_COOKIE_SECURE | True |
SESSION_ENGINE | u'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | True |
SESSION_SERIALIZER | u'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'settings' |
SHORT_DATETIME_FORMAT | u'm/d/Y P' |
SHORT_DATE_FORMAT | u'm/d/Y' |
SIGNING_BACKEND | u'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | (Path('static'),) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | u'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/websites/wpbeta/www/static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [Path('templates')], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.template.context_processors.csrf', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'wholeparts.context_processors.site_info'], 'debug': False}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
THUMBNAIL_HIGH_RESOLUTION | True |
THUMBNAIL_PROCESSORS | ('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters') |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'America/Los_Angeles' |
TRANSIENT_DATA_DIR | 'fds' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
USING_DEBUG_TOOLBAR | False |
WSGI_APPLICATION | 'wsgi.application' |
X_FRAME_OPTIONS | u'SAMEORIGIN' |
YEAR_MONTH_FORMAT | u'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 page generated by the handler for this status code.