On Sat, Apr 30, 2011 at 3:45 PM, Pulkit Mehrotra
<mehrotra.pul...@gmail.com>wrote:

> 'module' object has no attribute 'CharField'
>
> What does this error means ???
>
> View for this is:
> from django.shortcuts import render_to_response
> from django.http import HttpResponseRedirect,HttpResponse
> from wishlist.models import wish
> from wishlist.forms import wish
>
>
Somebody else tried to point this out on your previous question, but you
apparently didn't see that answer, or didn't understand it? As long as you
have two different things you are trying to call by the same name, you are
going to get odd errors like this. Change the name of one of your wishes to
something else: you cannot call both the model and the form "wish". And if
you've done the same sort of thing elsewhere, undo it as well. The error
message rather sounds like you've done something similar with re-binding the
name 'models' or 'forms' to your own thing rather than django.db.models and
django.forms.

Karen
-- 
http://tracey.org/kmt/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to