开发者

Problem filling Django template in googleappengine Loader

开发者 https://www.devze.com 2023-01-02 22:23 出处:网络
I am trying to test a googleapengine project locally, but am getting errors loading templates: My settings.py contains TEMPLATE_LOADERS withLoader wrappers:

I am trying to test a googleapengine project locally, but am getting errors loading templates:

My settings.py contains TEMPLATE_LOADERS with Loader wrappers:

e.g. django.template.loaders.filesystem.Loader

but there is 开发者_运维技巧no Loader wrapper class in the bundled filesystem.py file within

xx/google_appengine/lib/django/django/template/loaders/

so I'm getting this error:

Exception Type: ImproperlyConfigured Exception Value: Module "django.template.loaders.filesystem" does not define a "Loader" callable template source loader Exception Location: in xxxx/google_appengine/lib/django/django/template/loader.py in find_template_source, line 60


It is possible you are using a settings.py file that you created with a newer version of Django, on a system that has an older version installed. The template loaders changed, and settings.py cannot find the new module.

0

精彩评论

暂无评论...
验证码 换一张
取 消