Invalid block tag on line 28: 'elif', expected 'empty' or 'endfor'. Did you forget to register or load this tag?
Request Method: | GET |
---|---|
Request URL: | http://bergeitalia.com/blog/ |
Django Version: | 1.9.7 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Invalid block tag on line 28: 'elif', expected 'empty' or 'endfor'. Did you forget to register or load this tag? |
Exception Location: | /usr/local/lib/python2.7/site-packages/django/template/base.py in parse, line 516 |
Python Executable: | /usr/local/bin/python |
Python Version: | 2.7.13 |
Python Path: | ['/code', '/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/local/lib/python2.7/site-packages'] |
Server time: | Thu, 28 Mar 2024 14:57:56 +0000 |
In template /code/sito/templates/blog.html
, error at line 28
18 | </a> |
---|---|
19 | {% endif %} |
20 | <p class="text-center">{{blog.pub_date}}</p> |
21 | </div><!-- /col-sm-4 --> |
22 | <div class="col-xs-12 col-sm-10"> |
23 | <h3> |
24 | {% if session_language = 'eng' % |
25 | |
26 | |
27 | {{blog.title_uk}} |
28 | {% elif session_language = 'fra'%} |
29 | {{blog.title_fra}} |
30 | {% else %} |
31 | {{blog.title}} |
32 | {% endif %} |
33 | </h3> |
34 | <p><hr></p> |
35 | <p> |
36 | {% if session_language = 'eng' %} |
37 | {{blog.intro_uk|truncatechars:480}} |
38 | {% elif session_language = 'fra'%} |
/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py
in get_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:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
e | TemplateSyntaxError(u"Invalid block tag on line 28: 'elif', expected 'empty' or 'endfor'. Did you forget to register or load this tag?",) |
callback_args | () |
resolver_match | ResolverMatch(func=sito.views.BlogView, args=(), kwargs={}, url_name=blog, app_names=[], namespaces=[]) |
response_is_rendered | False |
middleware_method | <bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x7fc95a88e910>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc9602df6d0> |
request | <WSGIRequest: GET '/blog/'> |
callback | <function BlogView at 0x7fc95abf1938> |
wrapped_callback | <function BlogView at 0x7fc95abf1938> |
resolver | <RegexURLResolver 'djangocommerce.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'djangocommerce.urls' |
/usr/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:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
e | TemplateSyntaxError(u"Invalid block tag on line 28: 'elif', expected 'empty' or 'endfor'. Did you forget to register or load this tag?",) |
callback_args | () |
resolver_match | ResolverMatch(func=sito.views.BlogView, args=(), kwargs={}, url_name=blog, app_names=[], namespaces=[]) |
response_is_rendered | False |
middleware_method | <bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x7fc95a88e910>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc9602df6d0> |
request | <WSGIRequest: GET '/blog/'> |
callback | <function BlogView at 0x7fc95abf1938> |
wrapped_callback | <function BlogView at 0x7fc95abf1938> |
resolver | <RegexURLResolver 'djangocommerce.urls' (None:None) ^/> |
callback_kwargs | {} |
response | None |
urlconf | 'djangocommerce.urls' |
/code/sito/views.py
in BlogView
return render_to_response('page.html', context, context_instance=RequestContext(request))
# Blog - News
def BlogView(request):
blog_list = Blog.objects.all().order_by('-pub_date')
context = {'blog_list': blog_list}
return render_to_response('blog.html', context, context_instance=RequestContext(request))...
def BlogDetail(request, post_id, slug):
blog = Blog.objects.get(pk = post_id)
context = {'blog': blog}
return render_to_response('blog-dettaglio.html', context, context_instance=RequestContext(request))
Variable | Value |
---|---|
request | <WSGIRequest: GET '/blog/'> |
context | {'blog_list': [<Blog: Micam Febbraio 2020>, <Blog: Micam e Mipel Settembre 2019>, <Blog: Micam e Mipel 2019>, <Blog: Bergè and The Micam 2018>, <Blog: Bergè and The Micam>, <Blog: Progetto Giovani Stilisti>, <Blog: Bergè Day Sale>, <Blog: Berge punta sul rinnovamento attraverso il nuovo sito web>, <Blog: Nasce Berge uomo>]} |
blog_list | [<Blog: Micam Febbraio 2020>, <Blog: Micam e Mipel Settembre 2019>, <Blog: Micam e Mipel 2019>, <Blog: Bergè and The Micam 2018>, <Blog: Bergè and The Micam>, <Blog: Progetto Giovani Stilisti>, <Blog: Bergè Day Sale>, <Blog: Berge punta sul rinnovamento attraverso il nuovo sito web>, <Blog: Nasce Berge uomo>] |
/usr/local/lib/python2.7/site-packages/django/shortcuts.py
in render_to_response
# No deprecated arguments were passed - use the new code path
content = loader.render_to_string(template_name, context, using=using)
else:
# Some deprecated arguments were passed - use the legacy code path
content = loader.render_to_string(
template_name, context, context_instance, dirs, dictionary,
using=using)...
return HttpResponse(content, content_type, status)
def render(request, template_name, context=None,
context_instance=_context_instance_undefined,
Variable | Value |
---|---|
dirs | <object object at 0x7fc95e8d6220> |
status | None |
content_type | None |
dictionary | <object object at 0x7fc95e8d6210> |
template_name | 'blog.html' |
context_instance | [{'False': False, 'None': None, 'True': True}, {}, {}] |
context | {'blog_list': [<Blog: Micam Febbraio 2020>, <Blog: Micam e Mipel Settembre 2019>, <Blog: Micam e Mipel 2019>, <Blog: Bergè and The Micam 2018>, <Blog: Bergè and The Micam>, <Blog: Progetto Giovani Stilisti>, <Blog: Bergè Day Sale>, <Blog: Berge punta sul rinnovamento attraverso il nuovo sito web>, <Blog: Nasce Berge uomo>]} |
using | None |
/usr/local/lib/python2.7/site-packages/django/template/loader.py
in render_to_string
if isinstance(engine, DjangoTemplates):
if request is not None:
raise ValueError(
"render_to_string doesn't support the request argument "
"when some deprecated arguments are passed.")
# Hack -- use the internal Engine instance of DjangoTemplates.
return engine.engine.render_to_string(
template_name, context, context_instance, dirs, dictionary)...
elif context_instance is not _context_instance_undefined:
warnings.warn(
"Skipping template backend %s because its render_to_string "
"method doesn't support the context_instance argument." %
engine.name, stacklevel=2)
elif dirs is not _dirs_undefined:
Variable | Value |
---|---|
engine | <django.template.backends.django.DjangoTemplates object at 0x7fc95ab73910> |
dirs | <object object at 0x7fc95e8d6220> |
chain | [] |
dictionary | <object object at 0x7fc95e8d6210> |
template_name | 'blog.html' |
request | None |
context_instance | [{'False': False, 'None': None, 'True': True}, {}, {}] |
context | {'blog_list': [<Blog: Micam Febbraio 2020>, <Blog: Micam e Mipel Settembre 2019>, <Blog: Micam e Mipel 2019>, <Blog: Bergè and The Micam 2018>, <Blog: Bergè and The Micam>, <Blog: Progetto Giovani Stilisti>, <Blog: Bergè Day Sale>, <Blog: Berge punta sul rinnovamento attraverso il nuovo sito web>, <Blog: Nasce Berge uomo>]} |
using | None |
/usr/local/lib/python2.7/site-packages/django/template/engine.py
in render_to_string
"The dictionary argument of render_to_string was renamed to "
"context.", RemovedInDjango110Warning, stacklevel=3)
context = dictionary
if isinstance(template_name, (list, tuple)):
t = self.select_template(template_name, dirs)
else:
t = self.get_template(template_name, dirs)...
if not context_instance:
# Django < 1.8 accepted a Context in `context` even though that's
# unintended. Preserve this ability but don't rewrap `context`.
if isinstance(context, Context):
return t.render(context)
else:
Variable | Value |
---|---|
dirs | <object object at 0x7fc95e8d6220> |
dictionary | None |
template_name | 'blog.html' |
self | <django.template.engine.Engine object at 0x7fc95ab80050> |
context_instance | [{'False': False, 'None': None, 'True': True}, {}, {}] |
context | {'blog_list': [<Blog: Micam Febbraio 2020>, <Blog: Micam e Mipel Settembre 2019>, <Blog: Micam e Mipel 2019>, <Blog: Bergè and The Micam 2018>, <Blog: Bergè and The Micam>, <Blog: Progetto Giovani Stilisti>, <Blog: Bergè Day Sale>, <Blog: Berge punta sul rinnovamento attraverso il nuovo sito web>, <Blog: Nasce Berge uomo>]} |
/usr/local/lib/python2.7/site-packages/django/template/engine.py
in get_template
if dirs is _dirs_undefined:
dirs = None
else:
warnings.warn(
"The dirs argument of get_template is deprecated.",
RemovedInDjango110Warning, stacklevel=2)
template, origin = self.find_template(template_name, dirs)...
if not hasattr(template, 'render'):
# template needs to be compiled
template = Template(template, origin, template_name, engine=self)
return template
# This method was originally a function defined in django.template.loader.
Variable | Value |
---|---|
dirs | None |
template_name | 'blog.html' |
self | <django.template.engine.Engine object at 0x7fc95ab80050> |
/usr/local/lib/python2.7/site-packages/django/template/engine.py
in find_template
def find_template(self, name, dirs=None, skip=None):
tried = []
for loader in self.template_loaders:
if loader.supports_recursion:
try:
template = loader.get_template(
name, template_dirs=dirs, skip=skip,...
)
return template, template.origin
except TemplateDoesNotExist as e:
tried.extend(e.tried)
else:
# RemovedInDjango20Warning: Use old api for non-recursive
Variable | Value |
---|---|
dirs | None |
e | TemplateDoesNotExist('blog.html',) |
tried | [] |
skip | None |
self | <django.template.engine.Engine object at 0x7fc95ab80050> |
loader | <django.template.loaders.app_directories.Loader object at 0x7fc95a8533d0> |
name | 'blog.html' |
/usr/local/lib/python2.7/site-packages/django/template/loaders/base.py
in get_template
try:
contents = self.get_contents(origin)
except TemplateDoesNotExist:
tried.append((origin, 'Source does not exist'))
continue
else:
return Template(
contents, origin, origin.template_name, self.engine,...
)
raise TemplateDoesNotExist(template_name, tried=tried)
def load_template(self, template_name, template_dirs=None):
warnings.warn(
Variable | Value |
---|---|
origin | <django.template.base.Origin object at 0x7fc9584ec210> |
template_dirs | None |
tried | [(<django.template.base.Origin object at 0x7fc9584eca90>, 'Source does not exist'), (<django.template.base.Origin object at 0x7fc9584ec290>, 'Source does not exist'), (<django.template.base.Origin object at 0x7fc9584ece10>, 'Source does not exist'), (<django.template.base.Origin object at 0x7fc9584ecd90>, 'Source does not exist'), (<django.template.base.Origin object at 0x7fc9584ecb10>, 'Source does not exist'), (<django.template.base.Origin object at 0x7fc9584ece50>, 'Source does not exist'), (<django.template.base.Origin object at 0x7fc9584ecc10>, 'Source does not exist'), (<django.template.base.Origin object at 0x7fc9584ec9d0>, 'Source does not exist'), (<django.template.base.Origin object at 0x7fc9584ec310>, 'Source does not exist')] |
skip | None |
self | <django.template.loaders.app_directories.Loader object at 0x7fc95a8533d0> |
args | ['blog.html', None] |
template_name | 'blog.html' |
contents | u'{% extends \'base.html\' %}\n\n\n\n{% block content %}\n\n\n<section id="blog">\n\t<div class="container">\n\t\t<h3 class="text-center">BLOG - NEWS</h3>\n\t\t{% for blog in blog_list %}\n\t\t<div class="row">\n\t\t\t<div class="col-xs-12 col-sm-2">\n\t\t\t\t{% if blog.image %}\n\t\t\t\t{% load cropping %}\n\t\t\t\t<a href="{% url \'blog-dettaglio\' blog.id blog.slug %}">\n\t\t\t\t\t<img src="{% cropped_thumbnail blog "circle" %}" class="img-responsive img-circle circle-border">\n\t\t\t\t</a>\n\t\t\t\t{% endif %}\n\t\t\t\t<p class="text-center">{{blog.pub_date}}</p>\n\t\t\t</div><!-- /col-sm-4 -->\n\t\t\t<div class="col-xs-12 col-sm-10">\n\t\t\t\t<h3>\n\t\t\t\t\t{% if session_language = \'eng\' %\n\n\n\t\t\t\t\t\t{{blog.title_uk}}\n{% elif session_language = \'fra\'%}\n {{blog.title_fra}}\n\t\t\t\t\t{% else %}\n\t\t\t\t\t\t{{blog.title}}\n\t\t\t\t\t{% endif %}\n\t\t\t\t</h3>\n\t\t\t\t<p><hr></p>\n\t\t\t\t<p>\n\t\t\t\t\t{% if session_language = \'eng\' %}\n\t\t\t\t\t\t{{blog.intro_uk|truncatechars:480}}\n{% elif session_language = \'fra\'%}\n {{blog.intro_fra|truncatechars:480}}\n\t\t\t\t\t{% else %}\n\t\t\t\t\t\t{{blog.intro|truncatechars:480}}\n\t\t\t\t\t{% endif %}<br>\n <a href="{% url \'blog-dettaglio\' blog.id blog.slug %}" class="btn btn-grey btn-continua">continua...</a>\n </p>\n\t\t\t</div><!-- /col-sm-4 -->\n\t\t\t<div class="col-xs-12"><hr></div>\n\t\t</div><!-- /row -->\n\t\t{% endfor %}\n\t</div><!-- /container -->\n</section>\n\n{% endblock %}\n' |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in __init__
engine = Engine.get_default()
if origin is None:
origin = Origin(UNKNOWN_SOURCE)
self.name = name
self.origin = origin
self.engine = engine
self.source = template_string
self.nodelist = self.compile_nodelist()...
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
Variable | Value |
---|---|
engine | <django.template.engine.Engine object at 0x7fc95ab80050> |
origin | <django.template.base.Origin object at 0x7fc9584ec210> |
self | <django.template.base.Template object at 0x7fc9584eced0> |
name | 'blog.html' |
template_string | u'{% extends \'base.html\' %}\n\n\n\n{% block content %}\n\n\n<section id="blog">\n\t<div class="container">\n\t\t<h3 class="text-center">BLOG - NEWS</h3>\n\t\t{% for blog in blog_list %}\n\t\t<div class="row">\n\t\t\t<div class="col-xs-12 col-sm-2">\n\t\t\t\t{% if blog.image %}\n\t\t\t\t{% load cropping %}\n\t\t\t\t<a href="{% url \'blog-dettaglio\' blog.id blog.slug %}">\n\t\t\t\t\t<img src="{% cropped_thumbnail blog "circle" %}" class="img-responsive img-circle circle-border">\n\t\t\t\t</a>\n\t\t\t\t{% endif %}\n\t\t\t\t<p class="text-center">{{blog.pub_date}}</p>\n\t\t\t</div><!-- /col-sm-4 -->\n\t\t\t<div class="col-xs-12 col-sm-10">\n\t\t\t\t<h3>\n\t\t\t\t\t{% if session_language = \'eng\' %\n\n\n\t\t\t\t\t\t{{blog.title_uk}}\n{% elif session_language = \'fra\'%}\n {{blog.title_fra}}\n\t\t\t\t\t{% else %}\n\t\t\t\t\t\t{{blog.title}}\n\t\t\t\t\t{% endif %}\n\t\t\t\t</h3>\n\t\t\t\t<p><hr></p>\n\t\t\t\t<p>\n\t\t\t\t\t{% if session_language = \'eng\' %}\n\t\t\t\t\t\t{{blog.intro_uk|truncatechars:480}}\n{% elif session_language = \'fra\'%}\n {{blog.intro_fra|truncatechars:480}}\n\t\t\t\t\t{% else %}\n\t\t\t\t\t\t{{blog.intro|truncatechars:480}}\n\t\t\t\t\t{% endif %}<br>\n <a href="{% url \'blog-dettaglio\' blog.id blog.slug %}" class="btn btn-grey btn-continua">continua...</a>\n </p>\n\t\t\t</div><!-- /col-sm-4 -->\n\t\t\t<div class="col-xs-12"><hr></div>\n\t\t</div><!-- /row -->\n\t\t{% endfor %}\n\t</div><!-- /container -->\n</section>\n\n{% endblock %}\n' |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in compile_nodelist
tokens = lexer.tokenize()
parser = Parser(
tokens, self.engine.template_libraries, self.engine.template_builtins,
self.origin,
)
try:
return parser.parse()...
except Exception as e:
if self.engine.debug:
e.template_debug = self.get_exception_info(e, e.token)
raise
def get_exception_info(self, exception, token):
Variable | Value |
---|---|
tokens | [<django.template.base.Token object at 0x7fc9583cdc90>, <django.template.base.Token object at 0x7fc9583cdf50>, <django.template.base.Token object at 0x7fc9583cdf10>, <django.template.base.Token object at 0x7fc9583cd590>, <django.template.base.Token object at 0x7fc9583cd310>, <django.template.base.Token object at 0x7fc9583cd990>, <django.template.base.Token object at 0x7fc9583cd190>, <django.template.base.Token object at 0x7fc959a2dcd0>, <django.template.base.Token object at 0x7fc959a2d8d0>, <django.template.base.Token object at 0x7fc959a2d850>, <django.template.base.Token object at 0x7fc959a2da50>, <django.template.base.Token object at 0x7fc959a2d6d0>, <django.template.base.Token object at 0x7fc959a2d090>, <django.template.base.Token object at 0x7fc959a2d890>, <django.template.base.Token object at 0x7fc959a2d510>, <django.template.base.Token object at 0x7fc959a2d950>, <django.template.base.Token object at 0x7fc9584da390>, <django.template.base.Token object at 0x7fc9584da550>, <django.template.base.Token object at 0x7fc9584da3d0>, <django.template.base.Token object at 0x7fc9584da590>, <django.template.base.Token object at 0x7fc9584da690>, <django.template.base.Token object at 0x7fc9584dac90>, <django.template.base.Token object at 0x7fc95980e710>, <django.template.base.Token object at 0x7fc95980ee10>, <django.template.base.Token object at 0x7fc95980ebd0>, <django.template.base.Token object at 0x7fc95980eed0>, <django.template.base.Token object at 0x7fc95980e0d0>, <django.template.base.Token object at 0x7fc95980efd0>, <django.template.base.Token object at 0x7fc9584ec590>] |
self | <django.template.base.Template object at 0x7fc9584eced0> |
parser | <django.template.base.Parser object at 0x7fc95980e110> |
e | TemplateSyntaxError(u"Invalid block tag on line 28: 'elif', expected 'empty' or 'endfor'. Did you forget to register or load this tag?",) |
lexer | <django.template.base.DebugLexer object at 0x7fc9584ecb50> |
/usr/local/lib/python2.7/site-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)...
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
nodelist | [] |
compile_func | <function do_extends at 0x7fc95e5fe488> |
self | <django.template.base.Parser object at 0x7fc95980e110> |
token | <django.template.base.Token object at 0x7fc9584ec1d0> |
parse_until | [] |
command | u'extends' |
e | TemplateSyntaxError(u"Invalid block tag on line 28: 'elif', expected 'empty' or 'endfor'. Did you forget to register or load this tag?",) |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
DB_PORT_3306_TCP_PROTO | 'tcp' |
wsgi.multiprocess | False |
RUN_MAIN | 'true' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'WSGIServer/0.1 Python/2.7.13' |
DB_ENV_GOSU_VERSION | '1.12' |
SCRIPT_NAME | u'' |
DB_PORT | 'tcp://172.17.0.2:3306' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/blog/' |
PATH | '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
QUERY_STRING | '' |
HOME | '/root' |
PYTHONUNBUFFERED | '1' |
HTTP_X_REAL_IP | '34.230.35.103' |
LANG | 'C.UTF-8' |
HTTP_USER_AGENT | 'claudebot' |
TZ | 'UTC' |
PYTHON_VERSION | '2.7.13' |
SERVER_NAME | '0cca1d4464d1' |
REMOTE_ADDR | '146.59.34.73' |
PYTHON_PIP_VERSION | '9.0.1' |
wsgi.url_scheme | 'http' |
SERVER_PORT | '8000' |
DB_PORT_3306_TCP_PORT | '3306' |
DB_ENV_MYSQL_VERSION | '5.7.33-1debian10' |
CONTENT_LENGTH | '' |
DB_PORT_3306_TCP_ADDR | '172.17.0.2' |
GPG_KEY | 'C01E1CAD5EA2C4F0B8E3571504C367C218ADD4FF' |
DB_PORT_33060_TCP_PROTO | 'tcp' |
DB_PORT_33060_TCP_ADDR | '172.17.0.2' |
wsgi.input | <socket._fileobject object at 0x7fc9584cb2d0> |
DB_NAME | '/berge_b2c_web_1/db' |
DB_PORT_33060_TCP | 'tcp://172.17.0.2:33060' |
wsgi.multithread | True |
HTTP_CONNECTION | 'close' |
DB_ENV_MYSQL_ROOT_PASSWORD | 'Bs19850221*' |
DB_PORT_33060_TCP_PORT | '33060' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_X_FORWARDED_FOR | '34.230.35.103' |
wsgi.errors | <open file '<stderr>', mode 'w' at 0x7fc964a851e0> |
HOSTNAME | '0cca1d4464d1' |
HTTP_X_FORWARDED_HOST | 'bergeitalia.com' |
DB_PORT_3306_TCP | 'tcp://172.17.0.2:3306' |
wsgi.run_once | False |
DJANGO_SETTINGS_MODULE | 'djangocommerce.settings' |
DB_ENV_MYSQL_MAJOR | '5.7' |
CONTENT_TYPE | 'text/plain' |
HTTP_HOST | 'bergeitalia.com' |
wsgi.file_wrapper | '' |
REMOTE_HOST | '' |
djangocommerce.settings
Setting | Value |
---|---|
CART_PRODUCT_MODEL | 'product.models.Composition' |
SECURE_BROWSER_XSS_FILTER | False |
THUMBNAIL_PROCESSORS | ('image_cropping.thumbnail_processors.crop_corners', 'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'easy_thumbnails.processors.scale_and_crop', 'easy_thumbnails.processors.filters', 'easy_thumbnails.processors.background') |
USE_X_FORWARDED_PORT | False |
USE_THOUSAND_SEPARATOR | False |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'en-us' |
ROOT_URLCONF | 'djangocommerce.urls' |
MANAGERS | [] |
BASE_DIR | '/code' |
SILENCED_SYSTEM_CHECKS | [] |
DEFAULT_CHARSET | 'utf-8' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/code' |
ALLOWED_HOSTS | ['*'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SERVER_EMAIL | 'root@localhost' |
SECURE_HSTS_SECONDS | 0 |
CONTACT_RECIPIENTS | False |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
FILEBROWSER_DIRECTORY | '' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
SECURE_REDIRECT_EXEMPT | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'db', 'NAME': 'berge', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'root'}} |
EMAIL_SSL_KEYFILE | u'********************' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_PERMISSIONS | None |
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 | [] |
DEFAULT_TABLESPACE | '' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
SESSION_COOKIE_PATH | '/' |
EMAIL_HOST_PASSWORD | u'********************' |
SECURE_CONTENT_TYPE_NOSNIFF | False |
IMAGE_CROPPING_JQUERY_URL | 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js' |
MIDDLEWARE_CLASSES | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
DEFAULT_INDEX_TABLESPACE | '' |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'] |
WSGI_APPLICATION | 'djangocommerce.wsgi.application' |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
EMAIL_TIMEOUT | None |
SECURE_SSL_HOST | None |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
CSRF_TRUSTED_ORIGINS | [] |
LANGUAGE_COOKIE_DOMAIN | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ['grappelli', 'filebrowser', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'taggit', 'tinymce', 'mce_filebrowser', 'easy_thumbnails', 'filer', 'mptt', 'image_cropping', 'carton', 'product', 'cart', 'wishlist', 'order', 'agent', 'customer', 'coupon', 'newsletter', 'django_filters', 'nested_inline', 'sito'] |
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-co', 'Colombian 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'), ('gd', 'Scottish Gaelic'), ('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-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
USE_L10N | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
STATICFILES_DIRS | ['/code/static'] |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
CSRF_COOKIE_AGE | 31449600 |
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'] |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
GRAPPELLI_ADMIN_TITLE | 'Berge Urban Couture' |
SESSION_FILE_PATH | None |
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 | True |
DIRECTORY | '' |
FIXTURE_DIRS | [] |
EMAIL_HOST | 'smtp.bergeitalia.com' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/code/media/' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | [] |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'shop@bergeitalia.com' |
MEDIA_URL | 'https://bergeitalia.com/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | [] |
DISALLOWED_USER_AGENTS | [] |
ALLOWED_INCLUDE_ROOTS | [] |
LOGGING | {} |
SHORT_DATE_FORMAT | 'm/d/Y' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'sito.views.CategoryMenuView', 'sito.languages.translation_processor', 'sito.helper.session_status_delivery']}}] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
SECURE_SSL_REDIRECT | False |
TIME_ZONE | 'UTC' |
IMAGE_CROPPING_THUMB_SIZE | (1425, 500) |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'] |
MIGRATION_MODULES | {} |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'djangocommerce.settings' |
USE_ETAGS | False |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | [] |
STATIC_URL | '/static/' |
EMAIL_PORT | 587 |
USE_TZ | True |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
TEST_NON_SERIALIZED_APPS | [] |
PASSWORD_HASHERS | u'********************' |
TINYMCE_DEFAULT_CONFIG | {'cleanup_on_startup': True, 'custom_undo_redo_levels': 10, 'height': '1000px', 'plugins': 'table,spellchecker,paste,searchreplace', 'theme': 'advanced', 'width': '1040px'} |
ABSOLUTE_URL_OVERRIDES | {} |
LANGUAGE_COOKIE_PATH | '/' |
CACHE_MIDDLEWARE_SECONDS | 600 |
EMAIL_SSL_CERTFILE | None |
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'] |
IMAGE_CROPPING_SIZE_WARNING | True |
EMAIL_HOST_USER | 'shop@bergeitalia.com' |
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 page generated by the handler for this status code.