English 中文(简体)
多戈宁-洛阿得
原标题:Problem filling Django template in googleappengine Loader

我正试图在当地测试一个 go角项目,但正在出现错误装饰模板:

我的背景。 contains a. 与Loader包裹:

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

there 是在捆绑的档案系统中没有Lader包裹。 档案

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

因此,错觉:

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

问题回答

您有可能利用一种环境。 在安装了旧版本的系统上,你用新版本的Django制作了假文件。 模板装载器发生了变化,环境也随之发生变化。 不能找到新的模块。





相关问题
Get type of Django form widget from within template

I m iterating through the fields of a form and for certain fields I want a slightly different layout, requiring altered HTML. To do this accurately, I just need to know the widget type. Its class ...

"Permission Denied" in Django template using Djapian

I ve followed the Djapian tutorial and setup everything "by the book" so that the indexshell commandline supplied by Djapian shows successful queries. However, when integrating the sample search from ...

Problem with logic in Django template

Supose this portion of a Django template. regs is a list of Reg objects. Reg.editable is a BooleanField. I want to render a radio button per element in the list. If r.editable is False, the radio ...

url template tag in django template

I was trying to use the url template tag in django, but no lucky, I defined my urls.py like this urlpatterns = patterns( , url(r ^analyse/$ , views.home, name="home"), url(r ^...

Django MultiWidget Phone Number Field

I want to create a field for phone number input that has 2 text fields (size 3, 3, and 4 respectively) with the common "(" ")" "-" delimiters. Below is my code for the field and the widget, I m ...

Customize HTML Output of Django ModelForm

I am trying to add multiple inline form items to a page using Djangos ModelForms. I need Select boxes bound to database models. The forms are formatted and placed in a tabular format so I need to ...

How to test custom template tags in Django?

I m adding a set of template tags to a Django application and I m not sure how to test them. I ve used them in my templates and they seem to be working but I was looking for something more formal. ...

热门标签