'bool' object is unsubscriptable
Request Method: | GET |
---|---|
Request URL: | https://www.i-ski.co.uk/enquire/?holiday_id=020720-757457 |
Django Version: | 1.5.1 |
Exception Type: | TypeError |
Exception Value: | 'bool' object is unsubscriptable |
Exception Location: | /projects/iski/property/views.py in get_extended_holiday_details, line 158 |
Python Executable: | /usr/bin/python |
Python Version: | 2.6.6 |
Python Path: | ['/projects', '/projects/iski', '/usr/bin', '/usr/lib/python2.6/site-packages/filebrowser_safe-0.5.0-py2.6.egg', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/PIL', '/usr/lib/python2.6/site-packages', '/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info'] |
Server time: | Fri, 29 Mar 2024 11:33:27 +0000 |
/usr/lib/python2.6/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 | TypeError("'bool' object is unsubscriptable",) |
callback_args | () |
resolver_match | ResolverMatch(func=<function enquire at 0x43f95f0>, args=(), kwargs={}, url_name='enquire', app_name='None', namespace='') |
middleware_method | <bound method PageMiddleware.process_view of <mezzanine.pages.middleware.PageMiddleware object at 0x3a73cd0>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x263ced0> |
request | '<WSGIRequest\npath:/enquire/,\nGET:<QueryDict: {u\'holiday_id\': [u\'020720-757457\']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u\'CSRF_COOKIE\': u\'TXZjuxHMyqD9iyFH7t87QKau3brdtz5P\',\n \'HTTP_ACCEPT\': \'*/*\',\n \'HTTP_ACCEPT_ENCODING\': \'gzip, br\',\n \'HTTP_CDN_LOOP\': \'cloudflare\',\n \'HTTP_CF_CONNECTING_IP\': \'52.90.235.91\',\n \'HTTP_CF_IPCOUNTRY\': \'US\',\n \'HTTP_CF_RAY\': \'86bf7f2efc9982f6-IAD\',\n \'HTTP_CF_VISITOR\': \'{"scheme":"https"}\',\n \'HTTP_CONNECTION\': \'close\',\n \'HTTP_HOST\': \'www.i-ski.co.uk\',\n \'HTTP_USER_AGENT\': \'claudebot\',\n \'HTTP_X_FORWARDED_FOR\': \'52.90.235.91, 172.70.174.184\',\n \'HTTP_X_FORWARDED_PROTO\': \'https\',\n \'HTTP_X_REAL_IP\': \'172.70.174.184\',\n \'PATH_INFO\': u\'/enquire/\',\n \'QUERY_STRING\': \'holiday_id=020720-757457\',\n \'RAW_URI\': \'/enquire/?holiday_id=020720-757457\',\n \'REMOTE_ADDR\': \'172.70.174.184\',\n \'REMOTE_PORT\': \'80\',\n \'REQUEST_METHOD\': \'GET\',\n \'SCRIPT_NAME\': u\'\',\n \'SERVER_NAME\': \'www.i-ski.co.uk\',\n \'SERVER_PORT\': \'443\',\n \'SERVER_PROTOCOL\': \'HTTP/1.0\',\n \'SERVER_SOFTWARE\': \'gunicorn/17.5\',\n \'gunicorn.socket\': <socket._socketobject object at 0x640c600>,\n \'wsgi.errors\': <open file \'<stderr>\', mode \'w\' at 0x7f5076fa01e0>,\n \'wsgi.file_wrapper\': <class gunicorn.http.wsgi.FileWrapper at 0x25ead70>,\n \'wsgi.input\': <gunicorn.http.body.Body object at 0x432dc10>,\n \'wsgi.multiprocess\': True,\n \'wsgi.multithread\': False,\n \'wsgi.run_once\': False,\n \'wsgi.url_scheme\': \'https\',\n \'wsgi.version\': (1, 0)}>' |
callback | <function enquire at 0x43f95f0> |
resolver | <RegexURLResolver 'iski.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'iski.urls' |
/projects/iski/enquire/views.py
in enquire
def enquire(request):
form_sent = False
if request.method == "GET":
form = EnquireForm(request.GET)
if form.is_valid():
holiday_id = form.cleaned_data['holiday_id']
holiday_result = get_holiday(holiday_id)...
contact_form = ContactForm(initial={"holiday_id":holiday_id})
elif request.method == "POST":
contact_form = ContactForm(request.POST)
#if request.is_ajax():
import json
Variable | Value |
---|---|
request | '<WSGIRequest\npath:/enquire/,\nGET:<QueryDict: {u\'holiday_id\': [u\'020720-757457\']}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{u\'CSRF_COOKIE\': u\'TXZjuxHMyqD9iyFH7t87QKau3brdtz5P\',\n \'HTTP_ACCEPT\': \'*/*\',\n \'HTTP_ACCEPT_ENCODING\': \'gzip, br\',\n \'HTTP_CDN_LOOP\': \'cloudflare\',\n \'HTTP_CF_CONNECTING_IP\': \'52.90.235.91\',\n \'HTTP_CF_IPCOUNTRY\': \'US\',\n \'HTTP_CF_RAY\': \'86bf7f2efc9982f6-IAD\',\n \'HTTP_CF_VISITOR\': \'{"scheme":"https"}\',\n \'HTTP_CONNECTION\': \'close\',\n \'HTTP_HOST\': \'www.i-ski.co.uk\',\n \'HTTP_USER_AGENT\': \'claudebot\',\n \'HTTP_X_FORWARDED_FOR\': \'52.90.235.91, 172.70.174.184\',\n \'HTTP_X_FORWARDED_PROTO\': \'https\',\n \'HTTP_X_REAL_IP\': \'172.70.174.184\',\n \'PATH_INFO\': u\'/enquire/\',\n \'QUERY_STRING\': \'holiday_id=020720-757457\',\n \'RAW_URI\': \'/enquire/?holiday_id=020720-757457\',\n \'REMOTE_ADDR\': \'172.70.174.184\',\n \'REMOTE_PORT\': \'80\',\n \'REQUEST_METHOD\': \'GET\',\n \'SCRIPT_NAME\': u\'\',\n \'SERVER_NAME\': \'www.i-ski.co.uk\',\n \'SERVER_PORT\': \'443\',\n \'SERVER_PROTOCOL\': \'HTTP/1.0\',\n \'SERVER_SOFTWARE\': \'gunicorn/17.5\',\n \'gunicorn.socket\': <socket._socketobject object at 0x640c600>,\n \'wsgi.errors\': <open file \'<stderr>\', mode \'w\' at 0x7f5076fa01e0>,\n \'wsgi.file_wrapper\': <class gunicorn.http.wsgi.FileWrapper at 0x25ead70>,\n \'wsgi.input\': <gunicorn.http.body.Body object at 0x432dc10>,\n \'wsgi.multiprocess\': True,\n \'wsgi.multithread\': False,\n \'wsgi.run_once\': False,\n \'wsgi.url_scheme\': \'https\',\n \'wsgi.version\': (1, 0)}>' |
holiday_id | u'020720-757457' |
form | <enquire.forms.EnquireForm object at 0x4f629d0> |
form_sent | False |
/projects/iski/enquire/views.py
in get_holiday
from property.views import get_extended_holiday_details
from property.views import cache_holiday_by_id
holiday_result = cache.get(holiday_id, "not_found")
if holiday_result == "not_found":
holiday_result = get_holiday_details(holiday_id)
holiday_result = get_extended_holiday_details(holiday_result)...
cache_holiday_by_id(holiday_id, holiday_result)
return holiday_result
def enquire(request):
Variable | Value |
---|---|
get_holiday_details | <function get_holiday_details at 0x474faa0> |
holiday_result | False |
cache_holiday_by_id | <function cache_holiday_by_id at 0x474f668> |
get_extended_holiday_details | <function get_extended_holiday_details at 0x474f8c0> |
holiday_id | u'020720-757457' |
/projects/iski/property/views.py
in get_extended_holiday_details
return offer_obj
def get_extended_holiday_details(offer_obj):
import requests
import settings
hotel_details_request = "http://%s/SkiData/SkiApi.exe?Page=3&SuppCode=%s&HotelCode=%s" % (settings.SEARCH_IP, offer_obj['SuppCode'], offer_obj['hotel']['HotelCode'])...
# print hotel_details_request
hr = requests.get(hotel_details_request)
root = ET.fromstring(hr.text.encode('utf8'))
images = []
image_list = root.findall('Images')
if len(image_list) > 0:
Variable | Value |
---|---|
offer_obj | False |
requests | <module 'requests' from '/usr/lib/python2.6/site-packages/requests/__init__.pyc'> |
settings | <module 'settings' from '/projects/iski/settings.pyc'> |
Variable | Value |
---|---|
holiday_id | u'020720-757457' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_CF_VISITOR | '{"scheme":"https"}' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_X_FORWARDED_PROTO | 'https' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/17.5' |
SCRIPT_NAME | u'' |
HTTP_CDN_LOOP | 'cloudflare' |
wsgi.input | <gunicorn.http.body.Body object at 0x432dc10> |
REQUEST_METHOD | 'GET' |
HTTP_HOST | 'www.i-ski.co.uk' |
PATH_INFO | u'/enquire/' |
wsgi.multithread | False |
QUERY_STRING | 'holiday_id=020720-757457' |
HTTP_CONNECTION | 'close' |
HTTP_CF_RAY | '86bf7f2efc9982f6-IAD' |
HTTP_CF_CONNECTING_IP | '52.90.235.91' |
HTTP_X_REAL_IP | '172.70.174.184' |
HTTP_ACCEPT | '*/*' |
HTTP_USER_AGENT | 'claudebot' |
wsgi.version | (1, 0) |
REMOTE_PORT | '80' |
RAW_URI | '/enquire/?holiday_id=020720-757457' |
REMOTE_ADDR | '172.70.174.184' |
wsgi.run_once | False |
wsgi.errors | <open file '<stderr>', mode 'w' at 0x7f5076fa01e0> |
wsgi.multiprocess | True |
wsgi.url_scheme | 'https' |
gunicorn.socket | <socket._socketobject object at 0x640c600> |
SERVER_NAME | 'www.i-ski.co.uk' |
SERVER_PORT | '443' |
HTTP_X_FORWARDED_FOR | '52.90.235.91, 172.70.174.184' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'TXZjuxHMyqD9iyFH7t87QKau3brdtz5P' |
HTTP_ACCEPT_ENCODING | 'gzip, br' |
iski.settings
Setting | Value |
---|---|
TESTING | False |
DEV_SERVER | False |
TINYMCE_JS_ROOT | '/projects/iski/static/grappelli/tinymce/jscripts/tiny_mce/' |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en' |
ROOT_URLCONF | 'iski.urls' |
MANAGERS | (('Mike Hibbert', '[email protected]'),) |
BASE_DIR | '/projects' |
DEFAULT_CHARSET | 'utf-8' |
STATIC_ROOT | '/projects/iski/static' |
ALLOWED_HOSTS | ['95.138.170.145', '.i-ski.co.uk.', 'www.i-ski.co.uk', '127.0.0.1', '*'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.cookie.CookieStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
PACKAGE_NAME_GRAPPELLI | 'grappelli_safe' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M') |
DATABASES | {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'iski', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': 'chris'}} |
TEMPLATE_DEBUG | True |
FILE_UPLOAD_PERMISSIONS | None |
GOOGLE_RECAPTCHA_SECRET_KEY | u'********************' |
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 | [] |
WHOOSH_INDEX | '/projects/iski/whoosh/' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}} |
SERVER_EMAIL | 'root@localhost' |
SESSION_COOKIE_PATH | '/' |
YEAR_MONTH_FORMAT | 'F Y' |
MIDDLEWARE_CLASSES | (u'raven.contrib.django.middleware.SentryMiddleware', 'mezzanine.core.middleware.UpdateCacheMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'mezzanine.core.request.CurrentRequestMiddleware', 'mezzanine.core.middleware.TemplateForDeviceMiddleware', 'mezzanine.core.middleware.TemplateForHostMiddleware', 'mezzanine.core.middleware.AdminLoginInterfaceSelectorMiddleware', 'mezzanine.core.middleware.SitePermissionMiddleware', 'mezzanine.core.middleware.SSLRedirectMiddleware', 'mezzanine.pages.middleware.PageMiddleware', 'mezzanine.core.middleware.FetchFromCacheMiddleware') |
USE_I18N | False |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
GRAPPELLI_ADMIN_HEADLINE | 'Mezzanine' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | None |
EMAIL_TO | '[email protected]' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': '/projects/iski/whoosh/'}} |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
PROJECT_DIRNAME | 'iski' |
USE_SOUTH | True |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
COMMENTS_APP | 'mezzanine.generic' |
SESSION_FILE_PATH | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('mezzanine.boot', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.redirects', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'mezzanine.conf', 'mezzanine.core', 'mezzanine.generic', 'mezzanine.blog', 'mezzanine.forms', 'mezzanine.pages', 'mezzanine.galleries', 'mezzanine.twitter', 'search', 'property', 'home', 'resort', 'snowreport', 'offer', 'sitesearch', 'enquire', 'whoosh', 'haystack', 'raven.contrib.django.raven_compat', 'filebrowser_safe', 'south', 'grappelli_safe', 'django.contrib.admin', 'django.contrib.comments') |
COMP_ID | 8 |
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')) |
USE_L10N | False |
COMMENTS_ALLOW_PROFANITIES | False |
STATICFILES_DIRS | () |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | ('HTTP_X_FORWARDED_PROTOCOL', 'https') |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | True |
RAVEN_CONFIG | {'dsn': 'https://3f81fc5b2d0f455fb2e68cf7e0ac8940:[email protected]/219981'} |
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') |
AUTHENTICATION_BACKENDS | ('mezzanine.core.auth_backends.MezzanineBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
PACKAGE_NAME_FILEBROWSER | 'filebrowser_safe' |
GRAPPELLI_ADMIN_TITLE | 'Mezzanine' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
ADMIN_MEDIA_PREFIX | '/static/grappelli/' |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
PAGE_MENU_TEMPLATES | ((1, 'Top navigation bar', 'pages/menus/header_nav.html'), (2, 'Sub nav', 'pages/menus/header_subnav.html'), (3, 'Footer', 'pages/menus/footer.html')) |
GRAPPELLI_INSTALLED | True |
PROJECT_ROOT | '/projects/iski' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | () |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | True |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
FIXTURE_DIRS | () |
EMAIL_HOST | 'cloud314.thundercloud.uk' |
DATE_FORMAT | 'N j, Y' |
PIPELINE | {'JAVASCRIPT': {'app_pipelined': {'output_filename': '/projects/iski/static/js/app_pipelined.js', 'source_filenames': ('js/modernizr-2.0.min.js', 'js/jquery-2.2.4.min.js', 'js/jquery-1.6.2.min.js', 'jquery-ui-1.11.4/jquery-ui.js', 'js/jquery.fancybox.pack.js', 'js/lightslider.min.js', 'js/slideshow.js', 'js/jquery.slimmenu.min.js', 'js/mobile.js', 'js/script.min.js')}}, 'PIPELINE_ENABLED': True, 'STYLESHEETS': {'app_pipelined': {'output_filename': '/projects/iski/static/css/app_pipelined.css', 'source_filenames': ('css/master.css', 'css/mobile-search.css', 'css/jquery.fancybox.css', 'css/jquery-ui-1.8.16.custom.css')}}, 'YUGLIFY_BINARY': '/projects/iski/node_modules/yuglify/bin/yuglify'} |
OPTIONAL_APPS | ('compressor', 'filebrowser_safe', 'grappelli_safe') |
MEDIA_ROOT | '/projects/iski/static/media' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | (('Mike Hibbert', '[email protected]'),) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | '[email protected]' |
MEDIA_URL | '/static/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | ('/projects/iski/templates',) |
SITE_ID | 1 |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
LOGGING | {'disable_existing_loggers': True, 'formatters': {'verbose': {'format': '%(asctime)s %(levelname)s [%(name)s:%(lineno)s] %(module)s %(process)d %(thread)d %(message)s'}}, 'handlers': {'gunicorn': {'class': 'logging.handlers.RotatingFileHandler', 'filename': '/projects/iski/logs/gunicorn.errors', 'formatter': 'verbose', 'level': 'DEBUG', 'maxBytes': 104857600}}, 'loggers': {'gunicorn.errors': {'handlers': ['gunicorn'], 'level': 'DEBUG', 'propagate': True}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEST_RUNNER | 'django.test.simple.DjangoTestSuiteRunner' |
COMPRESS_ENABLED | False |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
TIME_ZONE | None |
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.contrib.messages.context_processors.messages', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.static', 'django.core.context_processors.media', 'django.core.context_processors.request', 'django.core.context_processors.tz', 'mezzanine.conf.context_processors.settings', 'search.context_processors.search', 'home.context_processors.site_vars', 'home.context_processors.debug') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'iski.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ('he', 'ar', 'fa') |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | ('127.0.0.1',) |
STATIC_URL | '/static/' |
EMAIL_PORT | 587 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
SEARCH_IP | '87.102.127.86:8087' |
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') |
EMAIL_HOST_USER | '[email protected]' |
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.