Note that there are some explanatory texts on larger screens.

plurals
  1. POApp works on Local host but not on appspot
    text
    copied!<p>I'm working on having a user authenticate on my webpage using Foursquare, once they are redirected back to my webpage the information recieved back is parsed out of the URL. This works perfect on localhost but when I deploy it I get the following error</p> <pre><code> Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 634, in __call__ handler.get(*groups) File "/base/data/home/apps/hoosheer/4.349803081119561985/hoosheer_main.py", line 34, in get foursquareMethods.foursquareDetails(self) File "/base/data/home/apps/hoosheer/4.349803081119561985/foursquareMethods.py", line 40, in foursquareDetails doRender(self, '500.html') File "/base/data/home/apps/hoosheer/4.349803081119561985/foursquareMethods.py", line 67, in doRender handler.response.out.write(template.render(path, template_values)) File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 72, in render t = load(template_path, debug) File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/template.py", line 100, in load template = django.template.loader.get_template(file_name) File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 80, in get_template template = get_template_from_string(source, origin, template_name) File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/loader.py", line 88, in get_template_from_string return Template(source, origin, name) File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 158, in __init__ self.nodelist = compile_string(template_string, origin) File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 174, in compile_string return parser.parse() File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 273, in parse compiled_result = compile_func(self, token) File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/loader_tags.py", line 154, in do_extends nodelist = parser.parse() File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 273, in parse compiled_result = compile_func(self, token) File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/loader_tags.py", line 132, in do_block nodelist = parser.parse(('endblock', 'endblock %s' % block_name)) File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 280, in parse self.unclosed_block_tag(parse_until) File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/template/__init__.py", line 318, in unclosed_block_tag raise self.error(None, "Unclosed tags: %s " % ', '.join(parse_until)) TemplateSyntaxError: Unclosed tags: endblock, endblock bodycontent </code></pre> <p><strong>UPDATE</strong></p> <p>The line in my code that seems to cause it is when I try to <code>doRender(self, '500.html') </code> This is the doRender method</p> <pre><code>def doRender(handler, tname, values = { }): template_values = dict(values) handler.session = Session() if 'access_token' in handler.session: template_values['access_token'] = handler.session['access_token'] path = os.path.join(os.path.dirname(__file__), tname) handler.response.out.write(template.render(path, template_values)) </code></pre> <p>and the template is as follows</p> <pre><code>{% extends "index.html" %} {% block bodycontent %} Server Error &lt;p&gt; There has been an error &lt;/p&gt; {% endblock %} </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload