AttributeError at /news/2015/sep/9/news-ocean-life-triggers-ice-formation-cl/

'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

Traceback Switch to copy-and-paste view



Request information

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

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'

Settings

Using settings module 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.