get() returned more than one Article -- it returned 2!
Request Method: | GET |
---|---|
Request URL: | http://weeklyworker.co.uk/worker/541/old-themes-good-fun/ |
Django Version: | 1.6.2 |
Exception Type: | MultipleObjectsReturned |
Exception Value: | get() returned more than one Article -- it returned 2! |
Exception Location: | /home/ww/.local/lib/python2.7/site-packages/django/db/models/query.py in get, line 310 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.12 |
Python Path: | ['/home/ww/weeklyworker.co.uk', '/usr/local/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/ww/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] |
Server time: | Thu, 28 Mar 2024 10:13:33 +0000 |
/home/ww/.local/lib/python2.7/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 |
---|---|
e | MultipleObjectsReturned('get() returned more than one Article -- it returned 2!',) |
callback_args | () |
resolver_match | ResolverMatch(func=<function ArticleView at 0x7fa23fbb1848>, args=(), kwargs={'issue': u'541', 'slug': u'old-themes-good-fun'}, url_name='article', app_name='worker', namespace='worker') |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fa245ca2090>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fa24610f210> |
request | "<WSGIRequest\npath:/worker/541/old-themes-good-fun/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u'CSRF_COOKIE': u'TH8GOOYHCw2yx4YrdMChyLpCEScwIWlQ',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'weeklyworker.co.uk',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/worker/541/old-themes-good-fun/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/worker/541/old-themes-good-fun/',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '80',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'weeklyworker.co.uk',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/18.0',\n 'gunicorn.socket': <socket._socketobject object at 0x7fa23ec9b520>,\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa2489ac1e0>,\n 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7fa2465dcce8>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7fa23e9edf50>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
callback | <function ArticleView at 0x7fa23fbb1848> |
wrapped_callback | <function ArticleView at 0x7fa23fbb1848> |
resolver | <RegexURLResolver 'communism.urls' (None:None) ^/> |
callback_kwargs | {'issue': u'541', 'slug': u'old-themes-good-fun'} |
response | None |
urlconf | 'communism.urls' |
/home/ww/.local/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 | <weeklyworker.views.ArticleView object at 0x7fa2465d2710> |
args | () |
request | "<WSGIRequest\npath:/worker/541/old-themes-good-fun/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u'CSRF_COOKIE': u'TH8GOOYHCw2yx4YrdMChyLpCEScwIWlQ',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'weeklyworker.co.uk',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/worker/541/old-themes-good-fun/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/worker/541/old-themes-good-fun/',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '80',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'weeklyworker.co.uk',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/18.0',\n 'gunicorn.socket': <socket._socketobject object at 0x7fa23ec9b520>,\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa2489ac1e0>,\n 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7fa2465dcce8>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7fa23e9edf50>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
kwargs | {'issue': u'541', 'slug': u'old-themes-good-fun'} |
cls | <class 'weeklyworker.views.ArticleView'> |
/home/ww/.local/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 | <weeklyworker.views.ArticleView object at 0x7fa2465d2710> |
handler | <bound method ArticleView.get of <weeklyworker.views.ArticleView object at 0x7fa2465d2710>> |
request | "<WSGIRequest\npath:/worker/541/old-themes-good-fun/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u'CSRF_COOKIE': u'TH8GOOYHCw2yx4YrdMChyLpCEScwIWlQ',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'weeklyworker.co.uk',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/worker/541/old-themes-good-fun/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/worker/541/old-themes-good-fun/',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '80',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'weeklyworker.co.uk',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/18.0',\n 'gunicorn.socket': <socket._socketobject object at 0x7fa23ec9b520>,\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa2489ac1e0>,\n 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7fa2465dcce8>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7fa23e9edf50>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
args | () |
kwargs | {'issue': u'541', 'slug': u'old-themes-good-fun'} |
/home/ww/.local/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 | <weeklyworker.views.ArticleView object at 0x7fa2465d2710> |
args | () |
request | "<WSGIRequest\npath:/worker/541/old-themes-good-fun/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u'CSRF_COOKIE': u'TH8GOOYHCw2yx4YrdMChyLpCEScwIWlQ',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_CONNECTION': 'close',\n 'HTTP_HOST': 'weeklyworker.co.uk',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/worker/541/old-themes-good-fun/',\n 'QUERY_STRING': '',\n 'RAW_URI': '/worker/541/old-themes-good-fun/',\n 'REMOTE_ADDR': '127.0.0.1',\n 'REMOTE_PORT': '80',\n 'REQUEST_METHOD': 'GET',\n 'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'weeklyworker.co.uk',\n 'SERVER_PORT': '80',\n 'SERVER_PROTOCOL': 'HTTP/1.0',\n 'SERVER_SOFTWARE': 'gunicorn/18.0',\n 'gunicorn.socket': <socket._socketobject object at 0x7fa23ec9b520>,\n 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fa2489ac1e0>,\n 'wsgi.file_wrapper': <class gunicorn.http.wsgi.FileWrapper at 0x7fa2465dcce8>,\n 'wsgi.input': <gunicorn.http.body.Body object at 0x7fa23e9edf50>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'http',\n 'wsgi.version': (1, 0)}>" |
kwargs | {'issue': u'541', 'slug': u'old-themes-good-fun'} |
/home/ww/weeklyworker.co.uk/weeklyworker/views.py
in get_object
context['category'] = Category.objects.get(name="Weekly Worker")
return context
def get_object(self):
time_now = datetime.utcnow().replace(tzinfo=utc)
try:
self.object = get_object_or_404(Article, slug=self.kwargs['slug'],
issue=Issue.objects.get(name=self.kwargs['issue']))...
except Http404:
self.object = get_object_or_404(Article, legacy_slug=self.kwargs['slug'])
if self.object.issue.published and not self.object.draft and self.object.pub_date <= time_now:
return self.object
else:
Variable | Value |
---|---|
self | <weeklyworker.views.ArticleView object at 0x7fa2465d2710> |
time_now | datetime.datetime(2024, 3, 28, 10, 13, 33, 407539, tzinfo=<UTC>) |
/home/ww/.local/lib/python2.7/site-packages/django/shortcuts/__init__.py
in get_object_or_404
arguments and keyword arguments are used in the get() query.
Note: Like with get(), an MultipleObjectsReturned will be raised if more than one
object is found.
"""
queryset = _get_queryset(klass)
try:
return queryset.get(*args, **kwargs)...
except queryset.model.DoesNotExist:
raise Http404('No %s matches the given query.' % queryset.model._meta.object_name)
def get_list_or_404(klass, *args, **kwargs):
"""
Uses filter() to return a list of objects, or raise a Http404 exception if
Variable | Value |
---|---|
args | () |
queryset | [<Article: 1483 - Up your game>, <Article: 1483 - Online Communist Forum, Sunday March 24 5pm>, <Article: 1483 - Part of the establishment>, <Article: 1483 - Thinking beyond ceasefires>, <Article: 1483 - Ten thousand years of sorrow>, <Article: 1483 - Spirit lives on still>, <Article: 1483 - Doctoring the princess>, <Article: 1483 - Selective justice is no justice>, <Article: 1483 - Delusions of ‘official optimism’>, <Article: 1482 - Help us get there>, <Article: 1482 - Online Communist Forum, Sunday March 17 5pm>, <Article: 1482 - Essentially human qualities>, <Article: 1482 - Keeping control over Arab street>, <Article: 1482 - Rules of the game>, <Article: 1482 - Distrust your government>, <Article: 1482 - Staring into the abyss>, <Article: 1482 - How to be an extremist>, <Article: 1482 - We are all Palestinians>, <Article: 1481 - Not a bad start>, <Article: 1481 - Online Communist Forum, Sunday March 10 5pm>, '...(remaining elements truncated)...'] |
klass | <class 'weeklyworker.models.Article'> |
kwargs | {'issue': <Issue: 541>, 'slug': u'old-themes-good-fun'} |
/home/ww/.local/lib/python2.7/site-packages/django/db/models/query.py
in get
return clone._result_cache[0]
if not num:
raise self.model.DoesNotExist(
"%s matching query does not exist." %
self.model._meta.object_name)
raise self.model.MultipleObjectsReturned(
"get() returned more than one %s -- it returned %s!" %
(self.model._meta.object_name, num))...
def create(self, **kwargs):
"""
Creates a new object with the given kwargs, saving it to the database
and returning the created object.
"""
Variable | Value |
---|---|
clone | [<Article: 541 - Old themes, Good fun>, <Article: 541 - Old themes, good fun>] |
num | 2 |
self | [<Article: 1483 - Up your game>, <Article: 1483 - Online Communist Forum, Sunday March 24 5pm>, <Article: 1483 - Part of the establishment>, <Article: 1483 - Thinking beyond ceasefires>, <Article: 1483 - Ten thousand years of sorrow>, <Article: 1483 - Spirit lives on still>, <Article: 1483 - Doctoring the princess>, <Article: 1483 - Selective justice is no justice>, <Article: 1483 - Delusions of ‘official optimism’>, <Article: 1482 - Help us get there>, <Article: 1482 - Online Communist Forum, Sunday March 17 5pm>, <Article: 1482 - Essentially human qualities>, <Article: 1482 - Keeping control over Arab street>, <Article: 1482 - Rules of the game>, <Article: 1482 - Distrust your government>, <Article: 1482 - Staring into the abyss>, <Article: 1482 - How to be an extremist>, <Article: 1482 - We are all Palestinians>, <Article: 1481 - Not a bad start>, <Article: 1481 - Online Communist Forum, Sunday March 10 5pm>, '...(remaining elements truncated)...'] |
args | () |
kwargs | {'issue': <Issue: 541>, 'slug': u'old-themes-good-fun'} |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/18.0' |
SCRIPT_NAME | u'' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fa23e9edf50> |
REQUEST_METHOD | 'GET' |
HTTP_HOST | 'weeklyworker.co.uk' |
PATH_INFO | u'/worker/541/old-themes-good-fun/' |
wsgi.multithread | False |
QUERY_STRING | '' |
HTTP_CONNECTION | 'close' |
HTTP_ACCEPT | '*/*' |
HTTP_USER_AGENT | 'claudebot' |
wsgi.version | (1, 0) |
REMOTE_PORT | '80' |
RAW_URI | '/worker/541/old-themes-good-fun/' |
REMOTE_ADDR | '127.0.0.1' |
wsgi.run_once | False |
wsgi.errors | <open file '<stderr>', mode 'w' at 0x7fa2489ac1e0> |
wsgi.multiprocess | False |
wsgi.url_scheme | 'http' |
gunicorn.socket | <socket._socketobject object at 0x7fa23ec9b520> |
SERVER_NAME | 'weeklyworker.co.uk' |
SERVER_PORT | '80' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'TH8GOOYHCw2yx4YrdMChyLpCEScwIWlQ' |
communism.settings.production
Setting | Value |
---|---|
FILEBROWSER_VERSIONS | {'admin_thumbnail': {'height': 60, 'opts': 'crop', 'verbose_name': 'Admin Thumbnail', 'width': 60}, 'art_full': {'height': '240', 'opts': 'crop', 'verbose_name': 'article_size', 'width': 440}, 'big': {'height': '', 'opts': '', 'verbose_name': 'Big (6 col)', 'width': 460}, 'cat_full': {'height': '240', 'opts': 'crop', 'verbose_name': 'Cat featured', 'width': 420}, 'large': {'height': '', 'opts': '', 'verbose_name': 'Large (8 col)', 'width': 680}, 'medium': {'height': '', 'opts': '', 'verbose_name': 'Medium (4col )', 'width': 210}, 'medium_tall': {'height': '240', 'opts': 'crop', 'verbose_name': 'For sidebar', 'width': 210}, 'small': {'height': '', 'opts': '', 'verbose_name': 'Small (2 col)', 'width': 140}, 'thumbnail': {'height': 60, 'opts': 'crop', 'verbose_name': 'Thumbnail (1 col)', 'width': 60}} |
MAILGUN_SERVER_NAME | 'sandbox10944.mailgun.org' |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-us' |
ROOT_URLCONF | 'communism.urls' |
MANAGERS | (('James Turley', 'jamesturley1905@googlemail.com'),) |
DEFAULT_CHARSET | 'utf-8' |
FILEBROWSER_VERSIONS_BASEDIR | '_versions/' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/home/ww/weeklyworker.co.uk/static' |
FILEBROWSER_MEDIA_ROOT | '/home/ww/weeklyworker.co.uk/assets' |
ALLOWED_HOSTS | ['area51.weeklyworker.co.uk', 'weeklyworker.co.uk'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.FileSystemFinder') |
FILEBROWSER_DIRECTORY | 'ww/' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'ww', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': ''}} |
FILE_UPLOAD_PERMISSIONS | 420 |
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.memcached.MemcachedCache', 'LOCATION': 'unix:/tmp/memcached.sock'}} |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
FILE_UPLOAD_TEMP_DIR | None |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | 'communism.wsgi.application' |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': '/home/ww/weeklyworker.co.uk/communism/settings/../../whoosh_index'}} |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
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', 'categories', 'categories.editor', 'south', 'autoslug', 'selenium', 'django_nose', 'whoosh', 'haystack', 'endless_pagination', 'grappelli', 'filebrowser', 'django.contrib.admin', 'mptt', 'weeklyworker', 'functional_tests') |
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'), ('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-tw', 'Traditional Chinese')) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | () |
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' |
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') |
MAILGUN_ACCESS_KEY | u'********************' |
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/' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/home/ww/weeklyworker.co.uk/assets' |
DEFAULT_SETTINGS | <module 'django.conf.global_settings' from '/home/ww/.local/lib/python2.7/site-packages/django/conf/global_settings.pyc'> |
ADMINS | (('James Turley', 'jamesturley1905@googlemail.com'),) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
MEDIA_URL | '/assets/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | () |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'file': {'class': 'logging.FileHandler', 'filename': '/home/ww/weeklyworker.co.uk/communism/settings/../../debug.log', 'filters': ['require_debug_false'], 'level': 'ERROR'}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'CRITICAL'}}, 'loggers': {'django.request': {'handlers': ['mail_admins', 'file'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEST_RUNNER | 'django_nose.NoseTestSuiteRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | 'Europe/London' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 10485760 |
EMAIL_BACKEND | 'django_mailgun.MailgunBackend' |
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', 'weeklyworker.context_processors.extra_context', 'django.core.context_processors.request', 'weeklyworker.context_processors.get_params') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'communism.settings.production' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
DEFAULT_INDEX_TABLESPACE | '' |
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 |
FILEBROWSER_NORMALIZE_FILENAME | True |
CSRF_COOKIE_HTTPONLY | False |
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.