Francisco José Marques Vieira
unread,Dec 20, 2012, 3:29:06 PM12/20/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-d...@googlegroups.com
Hi. I've got a doubt about Django, but the reason I didn't post this on
django-users was because the doubt was about Django's behaviour/design.
If I was wrong to post here, I'm sorry.
The problem occured when I was defining a form class. I made changes in
a view, I wrote a form class and I made changes in a template. Then I
went to see the result and Django blew with an error similar to this:
"Could not import app.views.myview. View does not exist in module
app.views.".
This would be pretty normal if there was indeed a problem with my view,
but after a long while trying to find the problem in it, I found out
that the error was instead in my form class where I had tried to use a
forms.TextField to get a textarea, which is the wrong way to do it. The
same error would have appeared if I made a typo in the field class name
instead.
My problem is that there was indeed an error, so Django was right to
blow in my face, I just wish the error was a bit more to the point.
Now, is this normal, or was it a special case derived by my environment?
Oh, and by the way, I'm using Django version 1.4.3. If this has already
been fixed in 1.5 forget this...