get() returned more than one NewsItem -- it returned 2!
Request Method: | |
---|---|
Request URL: | http://shadow.historyworks.tv |
Django Version: | 1.7 |
Exception Type: | MultipleObjectsReturned |
Exception Value: | get() returned more than one NewsItem -- it returned 2! |
Exception Location: | /var/www/Envs/foiresearch/lib/python2.7/site-packages/django/db/models/query.py in get, line 361 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.6 |
Python Path: | ['/var/www/Envs/foiresearch/src/django-ajax-selects-master', '/var/www/Envs/foiresearch/src/django-doctohtml', '/var/www/Envs/foiresearch/src/django-jimmypage-master', '/var/www/Envs/foiresearch/src/django-oembed', '/var/www/Envs/foiresearch/src/django-ordered-model', '/var/www/Envs/foiresearch/src/django-proxyfix', '/var/www/Envs/foiresearch/src/django-twync', '/var/www/Envs/foiresearch/src/django-forms-builder', '/var/www/Envs/foiresearch/src/django-staticgenerator', '/var/www/djapp/utils/django-translate', '/var/www/Envs/foiresearch/src/django-sitestructure-django17', '/var/www/Envs/foiresearch/src/django-filebrowser', '/var/www/Envs/foiresearch/src/django-cacheds3-storage', '/var/www/djapp/singing', '/var/www/Envs/foiresearch/lib/python2.7/site-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] |
Server time: | Thu, 13 Oct 2022 11:59:43 +0100 |
/var/www/Envs/foiresearch/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 NewsItem -- it returned 2!',) |
callback_args | () |
resolver_match | ResolverMatch(func=<function NewsDetailView at 0x22da5dc>, args=(), kwargs={'month': u'09', 'slug': u'history-tour-for-open-cambridge', 'day': u'01', 'year': u'2022'}, url_name='news_detail_view', app_name='None', namespace='') |
middleware_method | <bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x45ebccc>> |
self | <staticgenerator.handlers.DummyHandler object at 0x18c2c4c> |
request | "<HttpRequest\npath:,\nGET:{},\nPOST:{},\nCOOKIES:{},\nMETA:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>" |
callback | <function NewsDetailView at 0x22da5dc> |
wrapped_callback | <function NewsDetailView at 0x22da5dc> |
resolver | <RegexURLResolver 'historyworks.urls' (None:None) ^/> |
callback_kwargs | {'day': u'01', 'month': u'09', 'slug': u'history-tour-for-open-cambridge', 'year': u'2022'} |
response | None |
urlconf | 'historyworks.urls' |
/var/www/Envs/foiresearch/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 | <historyworks.pages.views.NewsDetailView object at 0x45eb06c> |
args | () |
request | "<HttpRequest\npath:,\nGET:{},\nPOST:{},\nCOOKIES:{},\nMETA:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>" |
kwargs | {'day': u'01', 'month': u'09', 'slug': u'history-tour-for-open-cambridge', 'year': u'2022'} |
cls | <class 'historyworks.pages.views.NewsDetailView'> |
/var/www/Envs/foiresearch/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': request
Variable | Value |
---|---|
self | <historyworks.pages.views.NewsDetailView object at 0x45eb06c> |
handler | <bound method NewsDetailView.get of <historyworks.pages.views.NewsDetailView object at 0x45eb06c>> |
request | "<HttpRequest\npath:,\nGET:{},\nPOST:{},\nCOOKIES:{},\nMETA:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>" |
args | () |
kwargs | {'day': u'01', 'month': u'09', 'slug': u'history-tour-for-open-cambridge', 'year': u'2022'} |
/var/www/djapp/singing/historyworks/pages/views.py
in get
class NewsDetailView(NodeDateDetailView):
model = NewsItem
date_field="published_date"
template_name="news_detail.html"
def get(self,request,*args,**kwargs):
if is_show_future(request):
self.allow_future=True
return super(NewsDetailView,self).get(request,*args,**kwargs)...
class HideFutureView(View):
def get(self, request, *args, **kwargs):
status = request.session.get('hide_future',False)
request.session['hide_future'] = not status
return HttpResponseRedirect("/admin/")
Variable | Value |
---|---|
self | <historyworks.pages.views.NewsDetailView object at 0x45eb06c> |
args | () |
request | "<HttpRequest\npath:,\nGET:{},\nPOST:{},\nCOOKIES:{},\nMETA:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>" |
kwargs | {'day': u'01', 'month': u'09', 'slug': u'history-tour-for-open-cambridge', 'year': u'2022'} |
/var/www/Envs/foiresearch/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 | <historyworks.pages.views.NewsDetailView object at 0x45eb06c> |
args | () |
request | "<HttpRequest\npath:,\nGET:{},\nPOST:{},\nCOOKIES:{},\nMETA:{'SERVER_NAME': u'shadow.historyworks.tv', 'SERVER_PORT': 80}>" |
kwargs | {'day': u'01', 'month': u'09', 'slug': u'history-tour-for-open-cambridge', 'year': u'2022'} |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/views/generic/dates.py
in get_object
# Filter down a queryset from self.queryset using the date from the
# URL. This'll get passed as the queryset to DetailView.get_object,
# which'll handle the 404
lookup_kwargs = self._make_single_date_lookup(date)
qs = qs.filter(**lookup_kwargs)
return super(BaseDetailView, self).get_object(queryset=qs)...
class DateDetailView(SingleObjectTemplateResponseMixin, BaseDateDetailView):
"""
Detail view of a single object on a single date; this differs from the
standard DetailView by accepting a year/month/day in the URL.
Variable | Value |
---|---|
qs | [<NewsItem: History Talk for Industrial Archaeology Society at Cambridge Museum of Technology>, <NewsItem: History Tour for Community around Ironworks>] |
self | <historyworks.pages.views.NewsDetailView object at 0x45eb06c> |
queryset | None |
month | u'09' |
year | u'2022' |
date | datetime.date(2022, 9, 1) |
lookup_kwargs | {'published_date': datetime.date(2022, 9, 1)} |
day | u'01' |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/views/generic/detail.py
in get_object
else:
raise AttributeError("Generic detail view %s must be called with "
"either an object pk or a slug."
% self.__class__.__name__)
try:
# Get the single item from the filtered queryset
obj = queryset.get()...
except queryset.model.DoesNotExist:
raise Http404(_("No %(verbose_name)s found matching the query") %
{'verbose_name': queryset.model._meta.verbose_name})
return obj
def get_queryset(self):
Variable | Value |
---|---|
pk | None |
slug_field | u'slug' |
queryset | [<NewsItem: History Talk for Industrial Archaeology Society at Cambridge Museum of Technology>, <NewsItem: History Tour for Community around Ironworks>] |
slug | u'history-tour-for-open-cambridge' |
self | <historyworks.pages.views.NewsDetailView object at 0x45eb06c> |
/var/www/Envs/foiresearch/lib/python2.7/site-packages/django/db/models/query.py
in get
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 if num <= MAX_GET_RESULTS else 'more than %s' % MAX_GET_RESULTS...
)
)
def create(self, **kwargs):
"""
Creates a new object with the given kwargs, saving it to the database
Variable | Value |
---|---|
clone | [<NewsItem: History Talk for Industrial Archaeology Society at Cambridge Museum of Technology>, <NewsItem: History Tour for Community around Ironworks>] |
num | 2 |
self | [<NewsItem: History Talk for Industrial Archaeology Society at Cambridge Museum of Technology>, <NewsItem: History Tour for Community around Ironworks>] |
args | () |
kwargs | {} |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
SERVER_NAME | u'shadow.historyworks.tv' |
SERVER_PORT | 80 |
historyworks.settings
Setting | Value |
---|---|
FILEBROWSER_VERSIONS | {'admin_bar': {'height': 15, 'opts': 'crop upscale', 'width': ''}, 'banner_cover_pic': {'height': 150, 'opts': 'crop upscale', 'verbose_name': 'Long thin black+white banner pic (3000px)', 'width': 3000}, 'big': {'height': '', 'opts': '', 'verbose_name': 'Big (620px)', 'width': 620}, 'cover_pic': {'height': '', 'opts': 'crop upscale', 'verbose_name': 'Banner image (1000px)', 'width': 1000}, 'fb_thumb': {'height': 60, 'opts': 'crop upscale', 'verbose_name': 'Admin Thumbnail', 'width': 60}, 'front_menu': {'height': 215, 'opts': 'crop upscale', 'verbose_name': 'Front page menu (215px)', 'width': 215}, 'front_news_thumb': {'height': 100, 'opts': 'crop upscale', 'width': 100}, 'inner_thumbnail': {'height': 200, 'opts': 'crop upscale', 'verbose_name': 'Standard inner page thumbnail (200px)', 'width': 200}, 'ipup_thumb': {'height': 140, 'opts': 'crop upscale', 'width': 130}, 'large': {'height': '', 'opts': '', 'verbose_name': 'Big (620px)', 'width': 620}, 'medium': {'height': '', 'opts': '', 'verbose_name': 'Medium (460px)', 'width': 460}, 'meta_thumb': {'height': 200, 'opts': 'crop upscale', 'verbose_name': 'Meta property thumbnail', 'width': 200}, 'news_index': {'height': 200, 'opts': 'crop upscale', 'width': 200}, 'person_detail': {'height': 180, 'opts': 'crop upscale', 'verbose_name': 'Main person pic', 'width': 200}, 'rhs_thumb': {'height': 110, 'opts': 'crop upscale', 'verbose_name': 'RHS menu thumb', 'width': 125}, 'rhs_thumb_small': {'height': 80, 'opts': 'crop upscale', 'verbose_name': 'RHS menu thumb', 'width': 90}, 'small': {'height': '', 'opts': '', 'verbose_name': 'Small (300px)', 'width': 300}, 'thumbnail': {'height': '', 'opts': '', 'verbose_name': 'Thumbnail (140px)', 'width': 140}, 'training_person_thumb': {'height': 70, 'opts': 'crop upscale', 'verbose_name': 'Training person thumbnail (80px)', 'width': 100}} |
USE_L10N | True |
SITE_URL | 'http://singinghistory.historyworks.tv' |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-gb' |
ROOT_URLCONF | 'historyworks.urls' |
MANAGERS | () |
TWYNC_NUMBER | 5 |
TEST_NON_SERIALIZED_APPS | [] |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/var/www/djapp/singing/static/' |
USE_THOUSAND_SEPARATOR | False |
ALLOWED_HOSTS | ['historyworks.tv'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
FILEBROWSER_DIRECTORY | 'uploads/' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
AWS_STORAGE_BUCKET_NAME | 'historyworks-media-01' |
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.mysql', 'HOST': 'tenar', 'NAME': 'singinghistory', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'singinghistory'}, 's3_db': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'historyworks', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'historyworks'}} |
FILEBROWSER_ADMIN_THUMBNAIL | 'fb_thumb' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
AWS_PRELOAD_METADATA | True |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
DEFAULT_CONTENT_TYPE | 'text/html' |
MAILCHIMP_LIST_ID | '254752842b' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | ['cachedS3.routers.CachedS3Router'] |
FILEBROWSER_OVERWRITE_EXISTING | False |
SECTION_MODEL | ('pages', 'section') |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
DATABASE_DISTRIBUTION | {'development': {'default': {'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'singinghistory', 'PASSWORD': u'********************', 'PORT': '', 'USER': 'singinghistory'}, 's3_db': {'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'historyworks', 'PASSWORD': u'********************', 'PORT': '', 'USER': 'historyworks'}}, 'production': {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'singinghistory', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'singinghistory'}, 's3_db': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'tenar', 'NAME': 'historyworks', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'historyworks'}}} |
ADMIN_SITE_URL | 'http://singinghistory.historyworks.tv' |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
SILENCED_SYSTEM_CHECKS | [] |
MIDDLEWARE_CLASSES | ('sitestructure.middleware.AdminAddUrlsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'sitestructure.middleware.AdminRedirectMiddleware') |
USE_I18N | True |
SITE_NODE_MODELS | ('training', 'project', 'person', 'newsitem') |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
FILE_UPLOAD_TEMP_DIR | None |
TWYNC_SECRET | u'********************' |
DEFAULT_TABLESPACE | '' |
TWYNC_KEY | u'********************' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', 'apptemplates.Loader') |
WSGI_APPLICATION | None |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
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 |
LANGUAGE_COOKIE_DOMAIN | None |
AWS_ACCESS_KEY_ID | u'********************' |
DEFAULT_FILE_STORAGE | 'historyworks.backends.MediaS3BotoStorage' |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'sitestructure', 'oembed', 'jimmypage', 'grappelli', 'filebrowser', 'django.contrib.admin', 'mptt', 'staticgenerator', 'twync', 'forms_builder.forms', 'storages', 'cachedS3', 'rpc4django', 'historyworks.base_content', 'historyworks.pages') |
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')) |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | () |
TWYNC_ACCESS_SECRET | u'********************' |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
AWS_SECRET_ACCESS_KEY | u'********************' |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CSRF_COOKIE_AGE | 31449600 |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
MONTH_DAY_FORMAT | 'F j' |
AWS_QUERYSTRING_AUTH | False |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
TIME_FORMAT | 'P' |
AUTH_USER_MODEL | 'auth.User' |
DATE_INPUT_FORMATS | ('%Y-%m-%d', '%d/%m/%Y', '%d/%m/%y', '%m/%d/%Y', '%m/%d/%y', '%d %b %Y', '%d %b, %Y', '%b %d %Y', '%b %d, %Y', '%d %B %Y', '%d %B, %Y', '%B %d %Y', '%B %d, %Y') |
SITE_HANDLE | 'historyworks' |
AUTHENTICATION_BACKENDS | ('django.contrib.auth.backends.ModelBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
CACHEDS3_DATABASE_NAME | 's3_db' |
GRAPPELLI_ADMIN_TITLE | 'Historyworks Admin' |
SESSION_FILE_PATH | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
ADMIN_MEDIA_PREFIX | '/static/admin/' |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
PAGE_MODEL | ('pages', 'contentnode') |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
TEMPLATE_STRING_IF_INVALID | '' |
DECIMAL_SEPARATOR | '.' |
CACHEDS3_USE_TAG_DIRECTORIES | True |
IGNORABLE_404_URLS | () |
SITE_ID | 1 |
LOCALE_PATHS | () |
CONTENT_NODE_APP | 'pages' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | () |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'j F, Y' |
TWYNC_ACCESS | '377345758-VR8l9vzVLMREoGKTufCrpzfg1svyQE5mIjXX5t2z' |
MEDIA_ROOT | '' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | () |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
THOUSAND_SEPARATOR | ',' |
MEDIA_URL | '' |
DATETIME_FORMAT | 'j F, Y, P' |
TEMPLATE_DIRS | ('/var/www/djapp/historyworks/historyworks/templates',) |
MAILCHIMP_API_KEY | u'********************' |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'null': {'class': 'django.utils.log.NullHandler', 'level': 'DEBUG'}}, 'loggers': {'django.db.backends': {'handlers': ['null'], 'level': 'DEBUG', 'propagate': False}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TWYNC_HANDLE | '@historyworkstv' |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
TWYNC_SHOW_RETWEETS | False |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TWYNC_SHOW_REPLIES | False |
TIME_ZONE | None |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
WEB_ROOT | '/var/www/sites/singing' |
RUNNING_DEVSERVER | False |
CONTENT_NODE_MODEL | 'contentnode' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', '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', 'historyworks.pages.context_processors.structure') |
FILEBROWSER_LIST_PER_PAGE | 10 |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'historyworks.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
NON_STANDARD_SITE_NODES | ('newsitem',) |
DEFAULT_INDEX_TABLESPACE | '' |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
PUBLISHABLE_MODEL | ('pages', 'contentnode') |
EMAIL_PORT | 25 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
LANGUAGE_COOKIE_PATH | '/' |
MIGRATION_MODULES | {} |
SERIALIZATION_MODULES | {'njson': 'sitestructure.serializers.json'} |
CACHE_MIDDLEWARE_SECONDS | 600 |
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') |
FORMS_BUILDER_UPLOAD_ROOT | '/var/www/djapp/roderick/form-uploads/' |
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.