Python – Django Custom Template Tags In Google App Engine


I am trying to include the following Tag In Google App Engine Web Application:

Is there any configuration of this file to make it work with Google App Engine?

Cause I followed the Django Template tutorials:

and have this structure:


in the Template file, I have {%load range_template%}

But I am getting the error:

TemplateSyntaxError: 'range_template' is not a valid tag library: Could not load template library from django.templatetags.range_template, No module named range_template

The other thing that might be a problem why this ain't working is, the INSTALL_APPS file. Not sure how to configure it.

I have a file in the root of my application and included this:

INSTALLED_APPS = ('templatetags')

Any advice would be greatly appreciated.

Best Solution

try doing the following:

$ python ./ startapp foo

Add foo to installed apps:

INSTALLED_APPS += ('foo',)

And move your templatetags directory into your foo app. Something like:


Django convention is that template tag code resides in apps, in directories named templatetags (see docs). I assume the same would be true for GAE.

Related Question