I am trying to use Django in built templatetags like markup and humanize in my google app , but its not working. I added markup and humanize in the INSTALLED_APPS. Still not working. How to use that?
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- __call__() missing 1 required positional argument:
- Upload file to Google Cloud Storage using AngularJ
- Where is the best place to put one-time and every-
- facebook “could not retrieve data from URL”
相关文章
- Is there a size limit for HTTP response headers on
- appcfg.py command not found
- Google app engine datastore string encoding proble
- How to truncate html without breaking the tags?
- Angular route not working when used with Google Ap
- Doctrine not finding data on Google App Engine?
- Using OkHttp client via OKClient on Google App Eng
- How do I use request.META.get('HTTP_REFERER
It is possible to do this, but you'll need to provide more information before your particular situation can be addressed. It sounds like there might be an exception that is being thrown--is this the case? If there is one, what is being printed out to the console (or the log)?
I'm using app-engine-patch and have been able to use both django.contrib.humanize and django.contrib.markup, so you might see if this works for you.
Here is how to do it for humanize, others should be similar. At the end of the controller that invokes your template there is a function that looks like:
Add the following two lines just after def main():
No need to add {% load humanize %} in your template.
Thanks to this posting http://blog.yjl.im/2011/02/few-things-on-google-app-engine-i.html that hinted the solution for me.