开发者

django - django-taggit - name 'TagFiled' is not defined [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 9 years ago.

I've installed django-taggit ( click here ) and after install the package shows under the python.2.7/dist-packages/taggit along with my other packages.

In the settings.py I placed taggit under INSTALLED_APPS.

In my form I've imported taggit forms.py like this:

from taggit.forms import *

And my form looks something like this:

class MyForm(forms开发者_C百科.Form):
    name = forms.CharField(max_length=50)
    my_tags = TagFiled()

My template is also pointing to that field like this:

{{ myform.my_tags }}

In views.py the form is instantiated this way:

myform = MyForm()  

For some reason when I bring up the page containing the form I get this error:

name 'TagFiled' is not defined 

Any ides what the problem might be? Thank you!


Is it because you're misspelling TagField?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜