Environment:
Request Method: GET Request URL: http://127.0.0.1:8000/mysite/wish Django Version: 1.3 Python Version: 2.7.1 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'wishlist'] Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 89. response = middleware_method(request) File "/usr/local/lib/python2.7/dist-packages/django/middleware/common.py" in process_request 68. _is_valid_path("%s/" % request.path_info, urlconf)): File "/usr/local/lib/python2.7/dist-packages/django/middleware/common.py" in _is_valid_path 154. urlresolvers.resolve(path, urlconf) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve 342. return get_resolver(urlconf).resolve(path) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve 252. sub_match = pattern.resolve(new_path) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve 158. return ResolverMatch(self.callback, args, kwargs, self.name) File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py" in _get_callback 170. raise ViewDoesNotExist("Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e))) Exception Type: ViewDoesNotExist at /mysite/wish Exception Value: Tried WishForm in module wishlist.views. Error was: 'module' object has no attribute 'CharField' THIS IS MY VIEWS FUNCTION from django.shortcuts import render_to_response from django.http import HttpResponseRedirect,HttpResponse from wishlist.models import wish from wishlist.forms import wish def wishlist(request): wish_list=wish.objects.all() return render_to_response( 'wishlist/wishlist.html', {'list':wish_list} ) def WishForm(request): if request.method == 'POST': form = wish(request.POST) if form.is_valid(): wish.wish = form.cleaned_data['wish'] wish.wish_date = form.cleaned_data['wish_date'] wish.save() else: form = WishForm() return render_to_response('wishlist/wish_form.html', {'form': form, }) -- 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.