'module' object has no attribute '_strptime'
Request Method: | GET |
---|---|
Request URL: | http://0.0.0.0:8000/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/ |
Django Version: | 1.5.12 |
Exception Type: | AttributeError |
Exception Value: | 'module' object has no attribute '_strptime' |
Exception Location: | /usr/src/app/django_venv/lib/python2.7/site-packages/django/views/generic/dates.py in _date_from_string, line 676 |
Python Executable: | /usr/src/app/django_venv/bin/python |
Python Version: | 2.7.18 |
Python Path: | ['/usr/src/app', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/src/app/django_venv/lib/python2.7/site-packages'] |
Server time: | Thu, 17 Dec 2020 10:32:01 +0000 |
/usr/src/app/django_venv/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
for middleware_method in self._view_middleware:
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
try:
response = 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 |
---|---|
e | AttributeError("'module' object has no attribute '_strptime'",) |
callback_args | () |
resolver_match | ResolverMatch(func=<function ArticleDetail at 0x7f4d6c5d5d50>, args=(), kwargs={'year': u'2015', 'url_title': u'news-ocean-life-triggers-ice-formation-cl', 'day': u'9', 'month': u'sep'}, url_name='article_detail', app_name='None', namespace='news') |
middleware_method | <bound method TransactionMiddleware.process_exception of <django.middleware.transaction.TransactionMiddleware object at 0x7f4d6d6f9510>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f4d6eac2d50> |
request | "<WSGIRequest\npath:/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': 'text/plain',\n u'CSRF_COOKIE': u'KGEQ5UFbyPPmo0O7P0aVlcnoUGm67a8Z',\n 'DJANGO_DB_NAME': 'arp',\n 'DJANGO_SETTINGS_MODULE': 'arp.settings',\n 'DJANGO_SU_EMAIL': 'ludona@bas.ac.uk',\n 'DJANGO_SU_NAME': 'ludona',\n 'DJANGO_SU_PASSWORD': 'password',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'GPG_KEY': 'C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF',\n 'HOME': '/root',\n 'HOSTNAME': '1e00c18518ed',\n 'HTTP_ACCEPT': 'text/html,*/*;q=0.8',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n 'HTTP_ACCEPT_LANGUAGE': 'en-gb',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': '0.0.0.0:8000',\n 'HTTP_REFERER': 'http://0.0.0.0:8000/news/',\n 'HTTP_USER_AGENT': 'SiteSucker for macOS/3.2.6',\n 'LANG': 'C.UTF-8',\n 'PATH': '/usr/src/app/django_venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n 'PATH_INFO': u'/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/',\n 'PGADMIN_DEFAULT_EMAIL': 'ludona@bas.ac.uk',\n 'PGADMIN_DEFAULT_PASSWORD': 'password',\n 'PGADMIN_LISTEN_PORT': '80',\n 'POSTGRES_DB': 'arp',\n 'POSTGRES_PASSWORD': 'password',\n 'POSTGRES_USER': 'postgres',\n 'PS1': '(django_venv) ${debian_chroot:+($debian_chroot)}\\\\u@\\\\h:\\\\w\\\\$ ',\n 'PWD': '/usr/src/app',\n 'PYTHONIOENCODING': 'UTF-8',\n 'PYTHON_GET_PIP_SHA256': '421ac1d44c0cf9730a088e337867d974b91bdce4ea2636099275071878cc189e',\n 'PYTHON_GET_PIP_URL': 'https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py',\n 'PYTHON_PIP_VERSION': '20.0.2',\n 'PYTHON_VERSION': '2.7.18',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '192.168.144.1',\n 'REMOTE_HOST': '',\n 'REQUEST_METHOD': 'GET',\n 'RUN_MAIN': 'true',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '1e00c18518ed',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7.18',\n 'SHLVL': '1',\n 'TERM': 'xterm',\n 'TZ': 'Europe/London',\n 'VIRTUAL_ENV': '/usr/src/app/django_venv',\n '_': '/usr/src/app/django_venv/bin/python',\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f4d70e01270>,\n 'wsgi.file_wrapper': <class wsgiref.util.FileWrapper at 0x7f4d6ff8f210>,\n 'wsgi.input': <socket._fileobject object at 0x7f4d5d44edd0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function ArticleDetail at 0x7f4d6c5d5d50> |
resolver | <RegexURLResolver 'arp.urls' (None:None) ^/> |
callback_kwargs | {'day': u'9', 'month': u'sep', 'url_title': u'news-ocean-life-triggers-ice-formation-cl', 'year': u'2015'} |
response | None |
urlconf | 'arp.urls' |
/usr/src/app/django_venv/lib/python2.7/site-packages/django/views/generic/base.py
in view
def view(request, *args, **kwargs):
self = cls(**initkwargs)
if hasattr(self, 'get') and not hasattr(self, 'head'):
self.head = self.get
self.request = request
self.args = args
self.kwargs = kwargs
return self.dispatch(request, *args, **kwargs)...
# take name and docstring from class
update_wrapper(view, cls, updated=())
# and possible attributes set by decorators
# like csrf_exempt from dispatch
Variable | Value |
---|---|
initkwargs | {} |
self | <arp.apps.news.views.ArticleDetail object at 0x7f4d5d380050> |
args | () |
request | "<WSGIRequest\npath:/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': 'text/plain',\n u'CSRF_COOKIE': u'KGEQ5UFbyPPmo0O7P0aVlcnoUGm67a8Z',\n 'DJANGO_DB_NAME': 'arp',\n 'DJANGO_SETTINGS_MODULE': 'arp.settings',\n 'DJANGO_SU_EMAIL': 'ludona@bas.ac.uk',\n 'DJANGO_SU_NAME': 'ludona',\n 'DJANGO_SU_PASSWORD': 'password',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'GPG_KEY': 'C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF',\n 'HOME': '/root',\n 'HOSTNAME': '1e00c18518ed',\n 'HTTP_ACCEPT': 'text/html,*/*;q=0.8',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n 'HTTP_ACCEPT_LANGUAGE': 'en-gb',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': '0.0.0.0:8000',\n 'HTTP_REFERER': 'http://0.0.0.0:8000/news/',\n 'HTTP_USER_AGENT': 'SiteSucker for macOS/3.2.6',\n 'LANG': 'C.UTF-8',\n 'PATH': '/usr/src/app/django_venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n 'PATH_INFO': u'/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/',\n 'PGADMIN_DEFAULT_EMAIL': 'ludona@bas.ac.uk',\n 'PGADMIN_DEFAULT_PASSWORD': 'password',\n 'PGADMIN_LISTEN_PORT': '80',\n 'POSTGRES_DB': 'arp',\n 'POSTGRES_PASSWORD': 'password',\n 'POSTGRES_USER': 'postgres',\n 'PS1': '(django_venv) ${debian_chroot:+($debian_chroot)}\\\\u@\\\\h:\\\\w\\\\$ ',\n 'PWD': '/usr/src/app',\n 'PYTHONIOENCODING': 'UTF-8',\n 'PYTHON_GET_PIP_SHA256': '421ac1d44c0cf9730a088e337867d974b91bdce4ea2636099275071878cc189e',\n 'PYTHON_GET_PIP_URL': 'https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py',\n 'PYTHON_PIP_VERSION': '20.0.2',\n 'PYTHON_VERSION': '2.7.18',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '192.168.144.1',\n 'REMOTE_HOST': '',\n 'REQUEST_METHOD': 'GET',\n 'RUN_MAIN': 'true',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '1e00c18518ed',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7.18',\n 'SHLVL': '1',\n 'TERM': 'xterm',\n 'TZ': 'Europe/London',\n 'VIRTUAL_ENV': '/usr/src/app/django_venv',\n '_': '/usr/src/app/django_venv/bin/python',\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f4d70e01270>,\n 'wsgi.file_wrapper': <class wsgiref.util.FileWrapper at 0x7f4d6ff8f210>,\n 'wsgi.input': <socket._fileobject object at 0x7f4d5d44edd0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
kwargs | {'day': u'9', 'month': u'sep', 'url_title': u'news-ocean-life-triggers-ice-formation-cl', 'year': u'2015'} |
cls | <class 'arp.apps.news.views.ArticleDetail'> |
/usr/src/app/django_venv/lib/python2.7/site-packages/django/views/generic/base.py
in dispatch
# Try to dispatch to the right method; if a method doesn't exist,
# defer to the error handler. Also defer to the error handler if the
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)...
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning('Method Not Allowed (%s): %s', request.method, request.path,
extra={
'status_code': 405,
'request': self.request
Variable | Value |
---|---|
self | <arp.apps.news.views.ArticleDetail object at 0x7f4d5d380050> |
handler | <bound method ArticleDetail.get of <arp.apps.news.views.ArticleDetail object at 0x7f4d5d380050>> |
request | "<WSGIRequest\npath:/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': 'text/plain',\n u'CSRF_COOKIE': u'KGEQ5UFbyPPmo0O7P0aVlcnoUGm67a8Z',\n 'DJANGO_DB_NAME': 'arp',\n 'DJANGO_SETTINGS_MODULE': 'arp.settings',\n 'DJANGO_SU_EMAIL': 'ludona@bas.ac.uk',\n 'DJANGO_SU_NAME': 'ludona',\n 'DJANGO_SU_PASSWORD': 'password',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'GPG_KEY': 'C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF',\n 'HOME': '/root',\n 'HOSTNAME': '1e00c18518ed',\n 'HTTP_ACCEPT': 'text/html,*/*;q=0.8',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n 'HTTP_ACCEPT_LANGUAGE': 'en-gb',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': '0.0.0.0:8000',\n 'HTTP_REFERER': 'http://0.0.0.0:8000/news/',\n 'HTTP_USER_AGENT': 'SiteSucker for macOS/3.2.6',\n 'LANG': 'C.UTF-8',\n 'PATH': '/usr/src/app/django_venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n 'PATH_INFO': u'/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/',\n 'PGADMIN_DEFAULT_EMAIL': 'ludona@bas.ac.uk',\n 'PGADMIN_DEFAULT_PASSWORD': 'password',\n 'PGADMIN_LISTEN_PORT': '80',\n 'POSTGRES_DB': 'arp',\n 'POSTGRES_PASSWORD': 'password',\n 'POSTGRES_USER': 'postgres',\n 'PS1': '(django_venv) ${debian_chroot:+($debian_chroot)}\\\\u@\\\\h:\\\\w\\\\$ ',\n 'PWD': '/usr/src/app',\n 'PYTHONIOENCODING': 'UTF-8',\n 'PYTHON_GET_PIP_SHA256': '421ac1d44c0cf9730a088e337867d974b91bdce4ea2636099275071878cc189e',\n 'PYTHON_GET_PIP_URL': 'https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py',\n 'PYTHON_PIP_VERSION': '20.0.2',\n 'PYTHON_VERSION': '2.7.18',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '192.168.144.1',\n 'REMOTE_HOST': '',\n 'REQUEST_METHOD': 'GET',\n 'RUN_MAIN': 'true',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '1e00c18518ed',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7.18',\n 'SHLVL': '1',\n 'TERM': 'xterm',\n 'TZ': 'Europe/London',\n 'VIRTUAL_ENV': '/usr/src/app/django_venv',\n '_': '/usr/src/app/django_venv/bin/python',\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f4d70e01270>,\n 'wsgi.file_wrapper': <class wsgiref.util.FileWrapper at 0x7f4d6ff8f210>,\n 'wsgi.input': <socket._fileobject object at 0x7f4d5d44edd0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
args | () |
kwargs | {'day': u'9', 'month': u'sep', 'url_title': u'news-ocean-life-triggers-ice-formation-cl', 'year': u'2015'} |
/usr/src/app/django_venv/lib/python2.7/site-packages/django/views/generic/detail.py
in get
class BaseDetailView(SingleObjectMixin, View):
"""
A base view for displaying a single object
"""
def get(self, request, *args, **kwargs):
self.object = self.get_object()...
context = self.get_context_data(object=self.object)
return self.render_to_response(context)
class SingleObjectTemplateResponseMixin(TemplateResponseMixin):
template_name_field = None
Variable | Value |
---|---|
self | <arp.apps.news.views.ArticleDetail object at 0x7f4d5d380050> |
args | () |
request | "<WSGIRequest\npath:/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': 'text/plain',\n u'CSRF_COOKIE': u'KGEQ5UFbyPPmo0O7P0aVlcnoUGm67a8Z',\n 'DJANGO_DB_NAME': 'arp',\n 'DJANGO_SETTINGS_MODULE': 'arp.settings',\n 'DJANGO_SU_EMAIL': 'ludona@bas.ac.uk',\n 'DJANGO_SU_NAME': 'ludona',\n 'DJANGO_SU_PASSWORD': 'password',\n 'GATEWAY_INTERFACE': 'CGI/1.1',\n 'GPG_KEY': 'C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF',\n 'HOME': '/root',\n 'HOSTNAME': '1e00c18518ed',\n 'HTTP_ACCEPT': 'text/html,*/*;q=0.8',\n 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',\n 'HTTP_ACCEPT_LANGUAGE': 'en-gb',\n 'HTTP_CONNECTION': 'keep-alive',\n 'HTTP_HOST': '0.0.0.0:8000',\n 'HTTP_REFERER': 'http://0.0.0.0:8000/news/',\n 'HTTP_USER_AGENT': 'SiteSucker for macOS/3.2.6',\n 'LANG': 'C.UTF-8',\n 'PATH': '/usr/src/app/django_venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',\n 'PATH_INFO': u'/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/',\n 'PGADMIN_DEFAULT_EMAIL': 'ludona@bas.ac.uk',\n 'PGADMIN_DEFAULT_PASSWORD': 'password',\n 'PGADMIN_LISTEN_PORT': '80',\n 'POSTGRES_DB': 'arp',\n 'POSTGRES_PASSWORD': 'password',\n 'POSTGRES_USER': 'postgres',\n 'PS1': '(django_venv) ${debian_chroot:+($debian_chroot)}\\\\u@\\\\h:\\\\w\\\\$ ',\n 'PWD': '/usr/src/app',\n 'PYTHONIOENCODING': 'UTF-8',\n 'PYTHON_GET_PIP_SHA256': '421ac1d44c0cf9730a088e337867d974b91bdce4ea2636099275071878cc189e',\n 'PYTHON_GET_PIP_URL': 'https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py',\n 'PYTHON_PIP_VERSION': '20.0.2',\n 'PYTHON_VERSION': '2.7.18',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '192.168.144.1',\n 'REMOTE_HOST': '',\n 'REQUEST_METHOD': 'GET',\n 'RUN_MAIN': 'true',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': '1e00c18518ed',\n 'SERVER_PORT': '8000',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'SERVER_SOFTWARE': 'WSGIServer/0.1 Python/2.7.18',\n 'SHLVL': '1',\n 'TERM': 'xterm',\n 'TZ': 'Europe/London',\n 'VIRTUAL_ENV': '/usr/src/app/django_venv',\n '_': '/usr/src/app/django_venv/bin/python',\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f4d70e01270>,\n 'wsgi.file_wrapper': <class wsgiref.util.FileWrapper at 0x7f4d6ff8f210>,\n 'wsgi.input': <socket._fileobject object at 0x7f4d5d44edd0>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': True,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
kwargs | {'day': u'9', 'month': u'sep', 'url_title': u'news-ocean-life-triggers-ice-formation-cl', 'year': u'2015'} |
/usr/src/app/django_venv/lib/python2.7/site-packages/django/views/generic/dates.py
in get_object
Get the object this request displays.
"""
year = self.get_year()
month = self.get_month()
day = self.get_day()
date = _date_from_string(year, self.get_year_format(),
month, self.get_month_format(),
day, self.get_day_format())...
# Use a custom queryset if provided
qs = queryset or self.get_queryset()
if not self.get_allow_future() and date > datetime.date.today():
raise Http404(_("Future %(verbose_name_plural)s not available because %(class_name)s.allow_future is False.") % {
Variable | Value |
---|---|
self | <arp.apps.news.views.ArticleDetail object at 0x7f4d5d380050> |
month | u'sep' |
queryset | None |
day | u'9' |
year | u'2015' |
/usr/src/app/django_venv/lib/python2.7/site-packages/django/views/generic/dates.py
in _date_from_string
"""
Helper: get a datetime.date object given a format string and a year,
month, and day (only year is mandatory). Raise a 404 for an invalid date.
"""
format = delim.join((year_format, month_format, day_format))
datestr = delim.join((year, month, day))
try:
return datetime.datetime.strptime(datestr, format).date()...
except ValueError:
raise Http404(_("Invalid date string '%(datestr)s' given format '%(format)s'") % {
'datestr': datestr,
'format': format,
})
Variable | Value |
---|---|
day_format | u'%d' |
format | u'%Y__%b__%d' |
month_format | u'%b' |
delim | u'__' |
month | u'sep' |
year_format | u'%Y' |
datestr | u'2015__sep__9' |
year | u'2015' |
day | u'9' |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
PYTHONIOENCODING | 'UTF-8' |
wsgi.multiprocess | False |
RUN_MAIN | 'true' |
HTTP_REFERER | 'http://0.0.0.0:8000/news/' |
POSTGRES_PASSWORD | 'password' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.1 Python/2.7.18' |
SCRIPT_NAME | u'' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/' |
PATH | '/usr/src/app/django_venv/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
QUERY_STRING | '' |
HOME | '/root' |
PS1 | '(django_venv) ${debian_chroot:+($debian_chroot)}\\u@\\h:\\w\\$ ' |
LANG | 'C.UTF-8' |
TERM | 'xterm' |
HTTP_USER_AGENT | 'SiteSucker for macOS/3.2.6' |
TZ | 'Europe/London' |
PYTHON_VERSION | '2.7.18' |
DJANGO_DB_NAME | 'arp' |
REMOTE_ADDR | '192.168.144.1' |
SHLVL | '1' |
PYTHON_PIP_VERSION | '20.0.2' |
wsgi.url_scheme | 'http' |
PGADMIN_DEFAULT_PASSWORD | 'password' |
SERVER_PORT | '8000' |
CONTENT_LENGTH | '' |
DJANGO_SU_PASSWORD | 'password' |
HTTP_ACCEPT | 'text/html,*/*;q=0.8' |
GPG_KEY | 'C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF' |
POSTGRES_DB | 'arp' |
PGADMIN_DEFAULT_EMAIL | 'ludona@bas.ac.uk' |
PGADMIN_LISTEN_PORT | '80' |
HTTP_HOST | '0.0.0.0:8000' |
wsgi.multithread | True |
HTTP_CONNECTION | 'keep-alive' |
DJANGO_SU_NAME | 'ludona' |
_ | '/usr/src/app/django_venv/bin/python' |
PYTHON_GET_PIP_SHA256 | '421ac1d44c0cf9730a088e337867d974b91bdce4ea2636099275071878cc189e' |
PYTHON_GET_PIP_URL | 'https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py' |
DJANGO_SU_EMAIL | 'ludona@bas.ac.uk' |
VIRTUAL_ENV | '/usr/src/app/django_venv' |
POSTGRES_USER | 'postgres' |
SERVER_NAME | '1e00c18518ed' |
GATEWAY_INTERFACE | 'CGI/1.1' |
wsgi.run_once | False |
CSRF_COOKIE | u'KGEQ5UFbyPPmo0O7P0aVlcnoUGm67a8Z' |
wsgi.errors | <open file '<stderr>', mode 'w' at 0x7f4d70e01270> |
HOSTNAME | '1e00c18518ed' |
HTTP_ACCEPT_LANGUAGE | 'en-gb' |
wsgi.input | <socket._fileobject object at 0x7f4d5d44edd0> |
wsgi.version | (1, 0) |
PWD | '/usr/src/app' |
DJANGO_SETTINGS_MODULE | 'arp.settings' |
CONTENT_TYPE | 'text/plain' |
wsgi.file_wrapper | '' |
REMOTE_HOST | '' |
HTTP_ACCEPT_ENCODING | 'gzip, deflate' |
arp.settings
Setting | Value |
---|---|
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-gb' |
ROOT_URLCONF | 'arp.urls' |
MANAGERS | () |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.PickleSerializer' |
STATIC_ROOT | '/usr/src/app/arp_static' |
ALLOWED_HOSTS | ['www.arp.webfactional.com', 'arp.webfactional.com', 'arctic.ac.uk', 'www.arctic.ac.uk', 'arp.arctic.ac.uk', '0.0.0.0', '0.0.0.0:8000', 'localhost', 'localhost:8000'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.cookie.CookieStorage' |
EMAIL_SUBJECT_PREFIX | '[Arctic Research Programme] ' |
FILE_UPLOAD_PERMISSIONS | 511 |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'db', 'NAME': 'arp', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '5432', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': 'postgres'}} |
SUIT_CONFIG | {'ADMIN_NAME': 'Arctic Research Programme'} |
SERVER_EMAIL | u'Arctic Research Programme <notifications@arp.arctic.ac.uk>' |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
RICHTEXT_SETTINGS | {'default': {'accessibility_warnings': False, 'content_css': 'css/screen.content.css', 'convert_urls': False, 'dialog_type': 'modal', 'extended_valid_elements': 'iframe[scrolling|frameborder|class|id|src |width|height|name|align],article[id|class],section[id|class]', 'height': '350px', 'paste_auto_cleanup_on_paste': True, 'paste_remove_spans': True, 'paste_remove_styles': True, 'plugins': 'table, advimage, inlinepopups, paste', 'theme': 'advanced', 'theme_advanced_blockformats': 'h3,h4,h5,h6,p', 'theme_advanced_buttons1': 'code,|,formatselect,styleselect,| ,bullist,numlist,table,hr,|,bold,italic,|,link,unlink,image', 'theme_advanced_buttons2': '', 'theme_advanced_buttons3': '', 'theme_advanced_path': False, 'theme_advanced_resizing': True, 'theme_advanced_statusbar_location': 'bottom', 'width': '700px'}} |
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'}, 'optimizations': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'LOCATION': 'optimizations', 'TIMEOUT': 86400}} |
SESSION_COOKIE_PATH | '/' |
STATIC_ASSETS | {'default': {'css': {'exclude': ('css/ie.css',), 'include': ('css/*.css',)}, 'js': {'include': ('js/vendor/jquery.js', 'js/vendor/custom.modernizr.js', 'js/foundation/foundation.js', 'js/foundation/foundation.orbit.js', 'js/plugins/jquery.mixitup.js', 'js/plugins/jquery.dlmenu.js', 'js/mixitup_helpers.js', 'js/site.js')}}} |
MIDDLEWARE_CLASSES | ('django.middleware.transaction.TransactionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'watson.middleware.SearchContextMiddleware', 'historylinks.middleware.HistoryLinkFallbackMiddleware', 'cms.middleware.PublicationMiddleware', 'cms.apps.pages.middleware.PageMiddleware') |
USE_I18N | False |
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.cached.Loader', ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')),) |
WSGI_APPLICATION | 'arp.wsgi.application' |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
PUBLICATION_MIDDLEWARE_EXCLUDE_URLS | ('^admin/.*',) |
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.sessions', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.staticfiles', 'suit', 'django.contrib.admin', 'django.contrib.sitemaps', 'optimizations', 'reversion', 'usertools', 'historylinks', 'watson', 'south', 'cms', 'cms.apps.pages', 'cms.apps.media', 'arp.apps.news', 'arp.apps.projects', 'arp.apps.site', 'mptt') |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('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-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-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('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'), ('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'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | ('/usr/src/app/arp/static',) |
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' |
WEATHER_URL | 'http://api.wunderground.com/api/2497cb5790c62501/conditions/q/{}.json' |
AUTH_USER_MODEL | 'auth.User' |
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.signed_cookies' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | True |
FIXTURE_DIRS | () |
EMAIL_HOST | 'smtp.webfaction.com' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/usr/src/app/arp_media' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | (('Onespacemedia Errors', 'errors@onespacemedia.com'),) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | u'Arctic Research Programme <notifications@arp.arctic.ac.uk>' |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('/usr/src/app/arp/templates',) |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
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} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'Europe/London' |
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.contrib.messages.context_processors.messages', 'django.core.context_processors.request', 'cms.context_processors.settings', 'cms.apps.pages.context_processors.pages') |
SITE_DOMAIN | 'arp.arctic.ac.uk' |
SITE_NAME | 'Arctic Research Programme' |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'arp.settings' |
USE_ETAGS | False |
SITE_ROOT | '/usr/src/app/arp' |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 587 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
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') |
WEATHER_URL_NOQ | 'http://api.wunderground.com/api/2497cb5790c62501/conditions{}.json' |
EMAIL_HOST_USER | 'arp' |
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.