Differences in overlaying a Django template between 0.96 and 1.0?

Now that the Google App Engine natively supports Django 1.0, I updated the following code:

from google.appengine.dist import use_library

use_library ('django', '1.0')

Now I get template errors related to template inheritance.

For example, if I have:

{% extends "../base.html"%}

Referring to base.html in the parent directory, this worked as expected in Django 0.96, but Django 1.0 could not find the reference template.

Django docs ( http://docs.djangoproject.com/en/dev/topics/templates/#template-inheritance ) don't mention the difference between the versions ....

+3
2

, . . , TEMPLATES_DIR ( applicationdirectory/templates)

+4

0.96 1.0 , {% extends %}, .

, , , .

0

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


All Articles