straight55b / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

After upgrade to hg version got this error TemplateSyntaxError: Invalid block tag: 'google_logout_url' #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed app-engine-patch latest release (one month ago) from the 
released zip file in Downloads.
2. Took the latest code from 
http://bitbucket.org/wkornewald/appenginepatch-sample/
3. Upgraded the code in the common folder with what's in mercurial.

What is the expected output? What do you see instead?
Request is canceled with an exception.

{{{
Traceback (most recent call last):
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/core/handlers/base.py", line 92, in 
get_response
  File "/Users/benjadrine/src/abj/st/trunk/myapp/views.py", line 511, in 
home
    return render_to_response(request, template_path(request, 
'st/home.html'), locals())
  File 
"/Users/benjadrine/src/abj/st/trunk/common/appenginepatch/ragendja/t
emplate.py", line 51, in render_to_response
    return HttpResponse(render_to_string(request, template_name, data),
  File 
"/Users/benjadrine/src/abj/st/trunk/common/appenginepatch/ragendja/t
emplate.py", line 37, in render_to_string
    context_instance=RequestContext(request))
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/loader.py", line 108, in 
render_to_string
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/__init__.py", line 178, in 
render
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/__init__.py", line 778, in 
render
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/debug.py", line 71, in 
render_node
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/loader_tags.py", line 71, in 
render
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/loader_tags.py", line 68, in 
get_parent
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/loader.py", line 90, in 
get_template_from_string
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/__init__.py", line 168, in 
__init__
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/__init__.py", line 189, in 
compile_string
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/__init__.py", line 285, in 
parse
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/defaulttags.py", line 814, in 
do_if
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/__init__.py", line 285, in 
parse
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/defaulttags.py", line 814, in 
do_if
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/__init__.py", line 283, in 
parse
  File "/Users/benjadrine/src/abj/st/trunk/common/zip-
packages/django-1.0.2.zip/django/template/__init__.py", line 335, in 
invalid_block_tag
TemplateSyntaxError: Invalid block tag: 'google_logout_url'
}}}

Original issue reported on code.google.com by bserg...@gmail.com on 3 Jun 2009 at 3:33

GoogleCodeExporter commented 9 years ago
Since there are no more GLOBALTAGS you have to {% load googletags %} manually 
in your
template.

Original comment by wkornew...@gmail.com on 3 Jun 2009 at 7:00

GoogleCodeExporter commented 9 years ago
Ok, thanks for the fix. I will do that in my templates.

Original comment by bserg...@gmail.com on 3 Jun 2009 at 3:51

GoogleCodeExporter commented 9 years ago
I've run into this same issue, but {% load googletags %} doesn't seem to do the 
trick anymore.  I was following the 
tutorial here:
http://code.google.com/appengine/articles/app-engine-patch.html

but it seems out of sync with the current build.

Original comment by christia...@gmail.com on 6 Jul 2009 at 4:37

GoogleCodeExporter commented 9 years ago
Did you add "ragendja" to your INSTALLED_APPS?

Original comment by wkornew...@gmail.com on 6 Jul 2009 at 4:40

GoogleCodeExporter commented 9 years ago
That did the trick.  Thanks.

Original comment by christia...@gmail.com on 6 Jul 2009 at 4:54