Could not parse the remainder: '=' from '='
Request Method: | GET |
---|---|
Request URL: | http://fightnightcombat.com/countries-and-regions.html |
Django Version: | 1.11.29 |
Exception Type: | TemplateSyntaxError |
Exception Value: | Could not parse the remainder: '=' from '=' |
Exception Location: | /home/fightnightcombat/fncvenv/lib/python2.7/site-packages/django/template/base.py in parse, line 515 |
Python Executable: | /home/fightnightcombat/fncvenv/bin/python |
Python Version: | 2.7.18 |
Python Path: | ['/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject', '/home/fightnightcombat/fncvenv/bin', '/home/fightnightcombat/opt/python-2.7.18/lib/python27.zip', '/home/fightnightcombat/opt/python-2.7.18/lib/python2.7', '/home/fightnightcombat/opt/python-2.7.18/lib/python2.7/plat-linux2', '/home/fightnightcombat/opt/python-2.7.18/lib/python2.7/lib-tk', '/home/fightnightcombat/opt/python-2.7.18/lib/python2.7/lib-old', '/home/fightnightcombat/opt/python-2.7.18/lib/python2.7/lib-dynload', '/home/fightnightcombat/fncvenv/lib/python2.7/site-packages'] |
Server time: | Fri, 29 Mar 2024 06:36:07 -0500 |
In template /home/fightnightcombat/fightnightcombat.com/fightnightcombatproject/templates/fightnightcombat/countries-and-regions.html
, error at line 19
9 | {% block navbar %} {% autoescape off %} {{ navigationbar }} {% endautoescape %} {% endblock %} |
---|---|
10 | {% block footer_dropdown_block %}{% autoescape off %} {{ footerdropdownmenus }} {% endautoescape %}{% endblock %} |
11 | |
12 | |
13 | {% block body_block %} |
14 | <div class="contentbox"> |
15 | |
16 | <h2>{% autoescape off %} {{ titlebar }} {% endautoescape %}</h2> </div> |
17 | |
18 | <div class="contentbox"> |
19 | {% if region = 1 %} |
20 | <p>See points and rankings based on the last 52 weeks of tournaments in the following regions:</p> |
21 | <p><ul> |
22 | {% for region in regionnames %} |
23 | <li><a href="region-tournament-rankings-{{region|first}}.html">{{region|last}}</a></li> |
24 | {% endfor %}</ul></p> |
25 | |
26 | {% endif %} |
27 | |
28 | {% if country = 1 %} |
29 | <p>See points and rankings based on the last 52 weeks of tournaments (excluding the EJC and the European Masters) in the following countries:</p> |
/home/fightnightcombat/fncvenv/lib/python2.7/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | TemplateSyntaxError(u"Could not parse the remainder: '=' from '='",) |
get_response | <bound method WSGIHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fef15e41c50>> |
request | <WSGIRequest: GET '/countries-and-regions.html'> |
/home/fightnightcombat/fncvenv/lib/python2.7/site-packages/django/core/handlers/base.py
in _legacy_get_response
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
if response:
break
if response is None:
response = self._get_response(request)...
return response
Variable | Value |
---|---|
middleware_method | <bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x7fef15ebd710>> |
request | <WSGIRequest: GET '/countries-and-regions.html'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fef15e41c50> |
/home/fightnightcombat/fncvenv/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 |
---|---|
callback | <function countriesandregions at 0x7fef14e08a50> |
callback_args | () |
callback_kwargs | {} |
e | TemplateSyntaxError(u"Could not parse the remainder: '=' from '='",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fef159aea50>> |
request | <WSGIRequest: GET '/countries-and-regions.html'> |
resolver | <RegexURLResolver 'tango_with_django_project.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=fightnightcombat.views.countriesandregions, args=(), kwargs={}, url_name=coutries-and-regions, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fef15e41c50> |
wrapped_callback | <function countriesandregions at 0x7fef14e08a50> |
/home/fightnightcombat/fncvenv/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 |
---|---|
callback | <function countriesandregions at 0x7fef14e08a50> |
callback_args | () |
callback_kwargs | {} |
e | TemplateSyntaxError(u"Could not parse the remainder: '=' from '='",) |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fef159aea50>> |
request | <WSGIRequest: GET '/countries-and-regions.html'> |
resolver | <RegexURLResolver 'tango_with_django_project.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=fightnightcombat.views.countriesandregions, args=(), kwargs={}, url_name=coutries-and-regions, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fef15e41c50> |
wrapped_callback | <function countriesandregions at 0x7fef14e08a50> |
/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject/fightnightcombat/views.py
in countriesandregions
regionnames = getRegionNames()
context_dict['regionnames'] = regionnames
context_dict['region'] = 1
return render_to_response('fightnightcombat/countries-and-regions.html', context_dict, context)...
def countrytournamentrankings(request, fullorshort, rankings_country):
#todaysdate = gettodaysdate()
context = RequestContext(request)
Variable | Value |
---|---|
context | [{'False': False, 'None': None, 'True': True}, {}, {}] |
context_dict | {'clickToSortText': '<p>Click table headers to sort.</p>\n', 'country': 1, 'countrytournamentlist': [['AUS', 'Australia'], ['CAN', 'Canada'], ['DEU', 'Germany'], ['FRA', 'France'], ['GBR', 'United Kingdom'], ['ISR', 'Israel'], ['JPN', 'Japan'], ['NLD', 'Netherlands'], ['NOR', 'Norway'], ['NZL', 'New Zealand'], ['POL', 'Poland'], ['RUS', 'Russian Federation'], ['USA', 'United States']], 'navigationbar': u'<div class="navbar" style="text-align:left;"><div class="navbarbox" style="text-align:left;">\t<ul class="navmenu"><li style="font-size:0.75em;"><a href="index.html" style="width:188px"><center>Home<br>▼</center></a><ul><li><a href="about-fnc.html" style="width:188px">About FNC</a></li><li><a href="index.html#latest-news" style="width:188px">Latest News</a></li><li><a href="newsarchive.html" style="width:188px">News Archive</a></li><li><a href="allvideos.html" style="width:188px">Videos</a></li><li><a href="resources.html" style="width:188px">Rules & Resources</a></li><li><a href="https://www.facebook.com/ClubFightNight" target="new" style="width:188px">Facebook Page →</a></li></ul></li><li class="selected" style="font-size:0.75em;"><a href="current-points-and-rankings.html" background="gradient101.png" style="width:188px"><center>Rankings<br></center></a><ul><li><a href="current-points-and-rankings.html" style="width:188px">Current Rankings</a></li><li><a href="race-rankings-2024.html" style="width:188px">Open Race Rankings 2024</a></li><li><a href="womens-race-2024.html" style="width:188px">Womens Race Rankings 2024</a></li><li><a href="points-and-rankings-2024.html" style="width:188px">Yearly Open Rankings</a></li><li><a href="womens-yearly-rankings-2024.html" style="min-width:188px">Yearly Women\'s Rankings</a></li><li><a href="points-and-rankings-BritishSeries2023.html" style="min-width:188px">British Series 2023</a></li><li><a href="rankings-faq.html" style="width:188px">Rankings FAQ</a></li></ul></li><li style="font-size:0.75em;"><a href="tournament-calendar-2024.html" style="width:188px"><center>Tournaments<br>▼</center></a><ul><li><a href="tournament-calendar-2024.html" style="width:188px">2024 Calendar</a></li><li><a href="future-tournaments.html" style="width:188px">Future Tournaments</a></li><li><a href="past-tournament-participation-levels.html" style="width:188px">Participation Levels</a></li><li><a href="hostevents.html" style="width:188px">Host Events</a></li><li><a href="resources.html" style="width:188px">Running a FNC Tournament</a></li></ul></li><li style="font-size:0.75em;"><a href="allplayers.html" style="width:188px"><center>Players<br>▼</center></a><ul><li><a href="allplayers.html" style="width:188px">All Players</a></li><li><a href="elo-ratings.html" style="width:188px">Elo Ratings</a></li><li><a href="winsvstop10-all.html" style="width:188px">Wins VS Top 10 Players</a></li><li><a href="finalists-and-winners.html" style="width:188px">Finalists and Winners</a></li><li><a href="winningstreaks-all.html" style="width:188px">Winning Streaks</a></li><li><a href="always-the-bridesmaid.html" style="width:188px">"Awards"</a></li><li><a href="category-nationality.html" style="width:188px">Player Nationalities</a></li><li><a href="category-gender.html" style="width:188px">Player Genders</a></li></ul></li></ul><div class="endmenu"></div></div></div><div class="navbar">\t<ul class="navmenu"><li style="font-size:0.75em;"><a href="current-points-and-rankings.html" style="min-width:100px"><center>Current 52 Week Rankings<br></center></a></li><li style="font-size:0.75em;"><a href="race-rankings-2024.html" style="min-width:100px"><center>Race Rankings<br>▼</center></a><ul><li><a href="race-rankings-2024.html" style="min-width:100px">2024&... <trimmed 7257 bytes string> |
countrydictionary | [['AUS', 'Australia'], ['CAN', 'Canada'], ['DEU', 'Germany'], ['FRA', 'France'], ['GBR', 'United Kingdom'], ['ISR', 'Israel'], ['JPN', 'Japan'], ['NLD', 'Netherlands'], ['NOR', 'Norway'], ['NZL', 'New Zealand'], ['POL', 'Poland'], ['RUS', 'Russian Federation'], ['USA', 'United States']] |
countrytournamentlist | ['AUS', 'CAN', 'DEU', 'FRA', 'GBR', 'ISR', 'JPN', 'NLD', 'NOR', 'NZL', 'POL', 'RUS', 'USA'] |
i | 13 |
newcountry | <pycountry.db.Country object at 0x7fef154dc050> |
pycountry | <module 'pycountry' from '/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject/pycountry/__init__.pyc'> |
regionnames | [['NOAM', 'North America'], ['SOAM', 'South America'], ['EURO', 'Europe'], ['MIDE', 'Middle East'], ['OCEA', 'Oceania'], ['AFRI', 'Africa']] |
request | <WSGIRequest: GET '/countries-and-regions.html'> |
/home/fightnightcombat/fncvenv/lib/python2.7/site-packages/django/shortcuts.py
in render_to_response
def render_to_response(template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, using=using)...
return HttpResponse(content, content_type, status)
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
Variable | Value |
---|---|
content_type | [{'False': False, 'None': None, 'True': True}, {}, {}] |
context | {'clickToSortText': '<p>Click table headers to sort.</p>\n', 'country': 1, 'countrytournamentlist': [['AUS', 'Australia'], ['CAN', 'Canada'], ['DEU', 'Germany'], ['FRA', 'France'], ['GBR', 'United Kingdom'], ['ISR', 'Israel'], ['JPN', 'Japan'], ['NLD', 'Netherlands'], ['NOR', 'Norway'], ['NZL', 'New Zealand'], ['POL', 'Poland'], ['RUS', 'Russian Federation'], ['USA', 'United States']], 'navigationbar': u'<div class="navbar" style="text-align:left;"><div class="navbarbox" style="text-align:left;">\t<ul class="navmenu"><li style="font-size:0.75em;"><a href="index.html" style="width:188px"><center>Home<br>▼</center></a><ul><li><a href="about-fnc.html" style="width:188px">About FNC</a></li><li><a href="index.html#latest-news" style="width:188px">Latest News</a></li><li><a href="newsarchive.html" style="width:188px">News Archive</a></li><li><a href="allvideos.html" style="width:188px">Videos</a></li><li><a href="resources.html" style="width:188px">Rules & Resources</a></li><li><a href="https://www.facebook.com/ClubFightNight" target="new" style="width:188px">Facebook Page →</a></li></ul></li><li class="selected" style="font-size:0.75em;"><a href="current-points-and-rankings.html" background="gradient101.png" style="width:188px"><center>Rankings<br></center></a><ul><li><a href="current-points-and-rankings.html" style="width:188px">Current Rankings</a></li><li><a href="race-rankings-2024.html" style="width:188px">Open Race Rankings 2024</a></li><li><a href="womens-race-2024.html" style="width:188px">Womens Race Rankings 2024</a></li><li><a href="points-and-rankings-2024.html" style="width:188px">Yearly Open Rankings</a></li><li><a href="womens-yearly-rankings-2024.html" style="min-width:188px">Yearly Women\'s Rankings</a></li><li><a href="points-and-rankings-BritishSeries2023.html" style="min-width:188px">British Series 2023</a></li><li><a href="rankings-faq.html" style="width:188px">Rankings FAQ</a></li></ul></li><li style="font-size:0.75em;"><a href="tournament-calendar-2024.html" style="width:188px"><center>Tournaments<br>▼</center></a><ul><li><a href="tournament-calendar-2024.html" style="width:188px">2024 Calendar</a></li><li><a href="future-tournaments.html" style="width:188px">Future Tournaments</a></li><li><a href="past-tournament-participation-levels.html" style="width:188px">Participation Levels</a></li><li><a href="hostevents.html" style="width:188px">Host Events</a></li><li><a href="resources.html" style="width:188px">Running a FNC Tournament</a></li></ul></li><li style="font-size:0.75em;"><a href="allplayers.html" style="width:188px"><center>Players<br>▼</center></a><ul><li><a href="allplayers.html" style="width:188px">All Players</a></li><li><a href="elo-ratings.html" style="width:188px">Elo Ratings</a></li><li><a href="winsvstop10-all.html" style="width:188px">Wins VS Top 10 Players</a></li><li><a href="finalists-and-winners.html" style="width:188px">Finalists and Winners</a></li><li><a href="winningstreaks-all.html" style="width:188px">Winning Streaks</a></li><li><a href="always-the-bridesmaid.html" style="width:188px">"Awards"</a></li><li><a href="category-nationality.html" style="width:188px">Player Nationalities</a></li><li><a href="category-gender.html" style="width:188px">Player Genders</a></li></ul></li></ul><div class="endmenu"></div></div></div><div class="navbar">\t<ul class="navmenu"><li style="font-size:0.75em;"><a href="current-points-and-rankings.html" style="min-width:100px"><center>Current 52 Week Rankings<br></center></a></li><li style="font-size:0.75em;"><a href="race-rankings-2024.html" style="min-width:100px"><center>Race Rankings<br>▼</center></a><ul><li><a href="race-rankings-2024.html" style="min-width:100px">2024&... <trimmed 7257 bytes string> |
status | None |
template_name | 'fightnightcombat/countries-and-regions.html' |
using | None |
/home/fightnightcombat/fncvenv/lib/python2.7/site-packages/django/template/loader.py
in render_to_string
Loads a template and renders it with a context. Returns a string.
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)...
return template.render(context, request)
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'clickToSortText': '<p>Click table headers to sort.</p>\n', 'country': 1, 'countrytournamentlist': [['AUS', 'Australia'], ['CAN', 'Canada'], ['DEU', 'Germany'], ['FRA', 'France'], ['GBR', 'United Kingdom'], ['ISR', 'Israel'], ['JPN', 'Japan'], ['NLD', 'Netherlands'], ['NOR', 'Norway'], ['NZL', 'New Zealand'], ['POL', 'Poland'], ['RUS', 'Russian Federation'], ['USA', 'United States']], 'navigationbar': u'<div class="navbar" style="text-align:left;"><div class="navbarbox" style="text-align:left;">\t<ul class="navmenu"><li style="font-size:0.75em;"><a href="index.html" style="width:188px"><center>Home<br>▼</center></a><ul><li><a href="about-fnc.html" style="width:188px">About FNC</a></li><li><a href="index.html#latest-news" style="width:188px">Latest News</a></li><li><a href="newsarchive.html" style="width:188px">News Archive</a></li><li><a href="allvideos.html" style="width:188px">Videos</a></li><li><a href="resources.html" style="width:188px">Rules & Resources</a></li><li><a href="https://www.facebook.com/ClubFightNight" target="new" style="width:188px">Facebook Page →</a></li></ul></li><li class="selected" style="font-size:0.75em;"><a href="current-points-and-rankings.html" background="gradient101.png" style="width:188px"><center>Rankings<br></center></a><ul><li><a href="current-points-and-rankings.html" style="width:188px">Current Rankings</a></li><li><a href="race-rankings-2024.html" style="width:188px">Open Race Rankings 2024</a></li><li><a href="womens-race-2024.html" style="width:188px">Womens Race Rankings 2024</a></li><li><a href="points-and-rankings-2024.html" style="width:188px">Yearly Open Rankings</a></li><li><a href="womens-yearly-rankings-2024.html" style="min-width:188px">Yearly Women\'s Rankings</a></li><li><a href="points-and-rankings-BritishSeries2023.html" style="min-width:188px">British Series 2023</a></li><li><a href="rankings-faq.html" style="width:188px">Rankings FAQ</a></li></ul></li><li style="font-size:0.75em;"><a href="tournament-calendar-2024.html" style="width:188px"><center>Tournaments<br>▼</center></a><ul><li><a href="tournament-calendar-2024.html" style="width:188px">2024 Calendar</a></li><li><a href="future-tournaments.html" style="width:188px">Future Tournaments</a></li><li><a href="past-tournament-participation-levels.html" style="width:188px">Participation Levels</a></li><li><a href="hostevents.html" style="width:188px">Host Events</a></li><li><a href="resources.html" style="width:188px">Running a FNC Tournament</a></li></ul></li><li style="font-size:0.75em;"><a href="allplayers.html" style="width:188px"><center>Players<br>▼</center></a><ul><li><a href="allplayers.html" style="width:188px">All Players</a></li><li><a href="elo-ratings.html" style="width:188px">Elo Ratings</a></li><li><a href="winsvstop10-all.html" style="width:188px">Wins VS Top 10 Players</a></li><li><a href="finalists-and-winners.html" style="width:188px">Finalists and Winners</a></li><li><a href="winningstreaks-all.html" style="width:188px">Winning Streaks</a></li><li><a href="always-the-bridesmaid.html" style="width:188px">"Awards"</a></li><li><a href="category-nationality.html" style="width:188px">Player Nationalities</a></li><li><a href="category-gender.html" style="width:188px">Player Genders</a></li></ul></li></ul><div class="endmenu"></div></div></div><div class="navbar">\t<ul class="navmenu"><li style="font-size:0.75em;"><a href="current-points-and-rankings.html" style="min-width:100px"><center>Current 52 Week Rankings<br></center></a></li><li style="font-size:0.75em;"><a href="race-rankings-2024.html" style="min-width:100px"><center>Race Rankings<br>▼</center></a><ul><li><a href="race-rankings-2024.html" style="min-width:100px">2024&... <trimmed 7257 bytes string> |
request | None |
template_name | 'fightnightcombat/countries-and-regions.html' |
using | None |
/home/fightnightcombat/fncvenv/lib/python2.7/site-packages/django/template/loader.py
in get_template
Raises TemplateDoesNotExist if no such template exists.
"""
chain = []
engines = _engine_list(using)
for engine in engines:
try:
return engine.get_template(template_name)...
except TemplateDoesNotExist as e:
chain.append(e)
raise TemplateDoesNotExist(template_name, chain=chain)
Variable | Value |
---|---|
chain | [] |
engine | <django.template.backends.django.DjangoTemplates object at 0x7fef14039e50> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7fef14039e50>] |
template_name | 'fightnightcombat/countries-and-regions.html' |
using | None |
/home/fightnightcombat/fncvenv/lib/python2.7/site-packages/django/template/backends/django.py
in get_template
self.engine = Engine(self.dirs, self.app_dirs, **options)
def from_string(self, template_code):
return Template(self.engine.from_string(template_code), self)
def get_template(self, template_name):
try:
return Template(self.engine.get_template(template_name), self)...
except TemplateDoesNotExist as exc:
reraise(exc, self)
def get_templatetag_libraries(self, custom_libraries):
"""
Return a collation of template tag libraries from installed
Variable | Value |
---|---|
self | <django.template.backends.django.DjangoTemplates object at 0x7fef14039e50> |
template_name | 'fightnightcombat/countries-and-regions.html' |
/home/fightnightcombat/fncvenv/lib/python2.7/site-packages/django/template/engine.py
in get_template
return Template(template_code, engine=self)
def get_template(self, template_name):
"""
Returns a compiled Template object for the given template name,
handling template inheritance recursively.
"""
template, origin = self.find_template(template_name)...
if not hasattr(template, 'render'):
# template needs to be compiled
template = Template(template, origin, template_name, engine=self)
return template
def render_to_string(self, template_name, context=None):
Variable | Value |
---|---|
self | <django.template.engine.Engine object at 0x7fef14039d50> |
template_name | 'fightnightcombat/countries-and-regions.html' |
/home/fightnightcombat/fncvenv/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 |
loader | <django.template.loaders.filesystem.Loader object at 0x7fef14053450> |
name | 'fightnightcombat/countries-and-regions.html' |
self | <django.template.engine.Engine object at 0x7fef14039d50> |
skip | None |
tried | [] |
/home/fightnightcombat/fncvenv/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 |
---|---|
args | ['fightnightcombat/countries-and-regions.html', None] |
contents | u'\n\n{% extends \'fightnightcombat/base.html\' %}\n\n{% load staticfiles %}\n\n{% block title %} {{ titlebar }} {% endblock %}\n\n{% block navbar %} {% autoescape off %} {{ navigationbar }} {% endautoescape %} {% endblock %}\n{% block footer_dropdown_block %}{% autoescape off %} {{ footerdropdownmenus }} {% endautoescape %}{% endblock %}\n\n\n{% block body_block %}\n<div class="contentbox">\n\n <h2>{% autoescape off %} {{ titlebar }} {% endautoescape %}</h2> </div>\n\n <div class="contentbox">\n {% if region = 1 %}\n <p>See points and rankings based on the last 52 weeks of tournaments in the following regions:</p>\n<p><ul>\n {% for region in regionnames %}\n <li><a href="region-tournament-rankings-{{region|first}}.html">{{region|last}}</a></li>\n {% endfor %}</ul></p>\n\n {% endif %}\n\n {% if country = 1 %}\n <p>See points and rankings based on the last 52 weeks of tournaments (excluding the EJC and the European Masters) in the following countries:</p>\n <p><ul>\n\n {% for region in countrytournamentlist %}\n <li><a href="country-tournament-rankings-{{region|first}}.html">{{region|last}}</a></a></li>\n {% endfor %}</ul></p>\n\n\n\n </p>\n {% endif %}\n\n </div>\n\n{% endblock %}\n\n' |
origin | <django.template.base.Origin object at 0x7fef152cca10> |
self | <django.template.loaders.filesystem.Loader object at 0x7fef14053450> |
skip | None |
template_dirs | None |
template_name | 'fightnightcombat/countries-and-regions.html' |
tried | [] |
/home/fightnightcombat/fncvenv/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 0x7fef14039d50> |
name | 'fightnightcombat/countries-and-regions.html' |
origin | <django.template.base.Origin object at 0x7fef152cca10> |
self | <django.template.base.Template object at 0x7fef152cc690> |
template_string | u'\n\n{% extends \'fightnightcombat/base.html\' %}\n\n{% load staticfiles %}\n\n{% block title %} {{ titlebar }} {% endblock %}\n\n{% block navbar %} {% autoescape off %} {{ navigationbar }} {% endautoescape %} {% endblock %}\n{% block footer_dropdown_block %}{% autoescape off %} {{ footerdropdownmenus }} {% endautoescape %}{% endblock %}\n\n\n{% block body_block %}\n<div class="contentbox">\n\n <h2>{% autoescape off %} {{ titlebar }} {% endautoescape %}</h2> </div>\n\n <div class="contentbox">\n {% if region = 1 %}\n <p>See points and rankings based on the last 52 weeks of tournaments in the following regions:</p>\n<p><ul>\n {% for region in regionnames %}\n <li><a href="region-tournament-rankings-{{region|first}}.html">{{region|last}}</a></li>\n {% endfor %}</ul></p>\n\n {% endif %}\n\n {% if country = 1 %}\n <p>See points and rankings based on the last 52 weeks of tournaments (excluding the EJC and the European Masters) in the following countries:</p>\n <p><ul>\n\n {% for region in countrytournamentlist %}\n <li><a href="country-tournament-rankings-{{region|first}}.html">{{region|last}}</a></a></li>\n {% endfor %}</ul></p>\n\n\n\n </p>\n {% endif %}\n\n </div>\n\n{% endblock %}\n\n' |
/home/fightnightcombat/fncvenv/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 |
---|---|
e | TemplateSyntaxError(u"Could not parse the remainder: '=' from '='",) |
lexer | <django.template.base.DebugLexer object at 0x7fef152cc550> |
parser | <django.template.base.Parser object at 0x7fef14018e10> |
self | <django.template.base.Template object at 0x7fef152cc690> |
tokens | [<django.template.base.Token object at 0x7fef14018790>, <django.template.base.Token object at 0x7fef14018710>, <django.template.base.Token object at 0x7fef14018350>, <django.template.base.Token object at 0x7fef14018810>, <django.template.base.Token object at 0x7fef14018850>, <django.template.base.Token object at 0x7fef140188d0>, <django.template.base.Token object at 0x7fef14018950>, <django.template.base.Token object at 0x7fef14018910>, <django.template.base.Token object at 0x7fef14018990>, <django.template.base.Token object at 0x7fef140189d0>, <django.template.base.Token object at 0x7fef14018a10>, <django.template.base.Token object at 0x7fef14018a90>, <django.template.base.Token object at 0x7fef14018a50>, <django.template.base.Token object at 0x7fef14018b10>, <django.template.base.Token object at 0x7fef14018b50>, <django.template.base.Token object at 0x7fef14018ad0>, <django.template.base.Token object at 0x7fef14018b90>, <django.template.base.Token object at 0x7fef14018bd0>, <django.template.base.Token object at 0x7fef14018c90>, <django.template.base.Token object at 0x7fef14018c10>, <django.template.base.Token object at 0x7fef14018cd0>, <django.template.base.Token object at 0x7fef14018d10>, <django.template.base.Token object at 0x7fef14018dd0>, <django.template.base.Token object at 0x7fef14018e50>, <django.template.base.Token object at 0x7fef152cc290>] |
/home/fightnightcombat/fncvenv/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 |
---|---|
command | u'extends' |
compile_func | <function do_extends at 0x7fef15f3e1d0> |
e | TemplateSyntaxError(u"Could not parse the remainder: '=' from '='",) |
nodelist | [<TextNode: u'\n\n'>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7fef14018e10> |
token | <django.template.base.Token object at 0x7fef14bff910> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'Keep-Alive' |
HTTP_HOST | 'fightnightcombat.com' |
HTTP_REFERER | 'http://www.fightnightcombat.com/countries-and-regions.html' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.237.31.131' |
HTTP_X_FORWARDED_HOST | 'fightnightcombat.com' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_PROTOCOL | 'https' |
HTTP_X_FORWARDED_SERVER | 'fightnightcombat.com' |
PATH_INFO | u'/countries-and-regions.html' |
QUERY_STRING | '' |
RAW_URI | '/countries-and-regions.html' |
REMOTE_ADDR | '69.163.193.77' |
REMOTE_PORT | '46292' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | u'' |
SERVER_NAME | '69.163.193.77' |
SERVER_PORT | '8002' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/19.10.0' |
gunicorn.socket | <socket._socketobject object at 0x7fef1449cec0> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fef13feff50> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fef13fefd90> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
tango_with_django_project.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | (('Luke', 'luke@juggler.net'),) |
ALLOWED_HOSTS | ['www.fightnightcombat.com', 'fightnightcombat.com', '127.0.0.1'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | [u'django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
AUTH_USER_MODEL | u'auth.User' |
CACHES | {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | u'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | u'csrftoken' |
CSRF_COOKIE_PATH | u'/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | u'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | u'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': 'fncdb.db', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_PATH | '/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject/fncdb.db' |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | u'N j, Y, P' |
DATETIME_INPUT_FORMATS | [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] |
DATE_FORMAT | u'N j, Y' |
DATE_INPUT_FORMATS | [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | u'.' |
DEFAULT_CHARSET | u'utf-8' |
DEFAULT_CONTENT_TYPE | u'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | u'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | u'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | u'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | u'' |
DEFAULT_TABLESPACE | u'' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | u'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | u'localhost' |
EMAIL_HOST_PASSWORD | u'********************' |
EMAIL_HOST_USER | u'' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | u'********************' |
EMAIL_SUBJECT_PREFIX | u'[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | u'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | u'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'fightnightcombat') |
INTERNAL_IPS | [] |
LANGUAGES | [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')] |
LANGUAGES_BIDI | [u'he', u'ar', u'fa', u'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | u'django_language' |
LANGUAGE_COOKIE_PATH | u'/' |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
LOGGING_CONFIG | u'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | u'/accounts/profile/' |
LOGIN_URL | u'/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | (('Luke', 'luke@juggler.net'),) |
MEDIA_ROOT | '/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | u'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
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') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | u'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | u'********************' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
PREPEND_WWW | False |
PROJECT_PATH | '/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject' |
ROOT_URLCONF | 'tango_with_django_project.urls' |
SECRET_KEY | u'********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | u'root@localhost' |
SESSION_CACHE_ALIAS | u'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | u'sessionid' |
SESSION_COOKIE_PATH | u'/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | u'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_DIR | '/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject/tango_with_django_project' |
SETTINGS_MODULE | 'tango_with_django_project.settings' |
SHORT_DATETIME_FORMAT | u'm/d/Y P' |
SHORT_DATE_FORMAT | u'm/d/Y' |
SIGNING_BACKEND | u'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | ('/home/fightnightcombat/fightnightcombat.com/public/',) |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
STATICFILES_STORAGE | u'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_PATH | '/home/fightnightcombat/fightnightcombat.com/public/' |
STATIC_ROOT | None |
STATIC_URL | '/public/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject/templates'], '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']}}] |
TEMPLATE_DEBUG | True |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
TEMPLATE_PATH | '/home/fightnightcombat/fightnightcombat.com/fightnightcombatproject/templates' |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | u'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | u',' |
TIME_FORMAT | u'P' |
TIME_INPUT_FORMATS | [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] |
TIME_ZONE | 'America/Chicago' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'tango_with_django_project.wsgi.application' |
X_FRAME_OPTIONS | u'SAMEORIGIN' |
YEAR_MONTH_FORMAT | u'F Y' |
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.