Can you use the verbatim tag with Django 1.5 in App Engine?

In my app.yaml file, I have:

- name: django
   version: "1.5"

which I assume uses Django 1.5. 1.5 contains the verbatim tag , but when I try to use it, I get:

TemplateSyntaxError: 'verbatim' is not a valid tag library: Template library verbatim not found, tried google.appengine._internal.django.templatetags.verbatim

Any idea how to enable this feature or it is simply not included in the application engine, I use 1.8.9. Thanks!

+4
source share
1 answer

I do not think this works. When I tried to do this, I got this trace:

Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2.py", line 1535, in __call__
...
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\_internal\django\template\__init__.py", line 333, in invalid_block_tag
    raise self.error(token, "Invalid block tag: '%s'" % command)
TemplateSyntaxError: Invalid block tag: 'verbatim'

Looking at the source C:\Program Files (x86)\Google\google_appengine\google\appengine\_internal\django\__init__.py, you can see the version number in the first line:

VERSION = (1, 2, 5, 'final', 0)

, appengine Django 1.2.5 . , , , - 1.5, . ( , Django 1.5 Webapp 2.5.2 app.yaml Google App Engine Launcher 1.9.17)

+1

Source: https://habr.com/ru/post/1525903/


All Articles