Thursday, November 15, 2012

ViewDoesNotExist'module ' object has no attribute 'Form'

while using django forms i gt an error 'view does not exist'

from django import forms

class Employeeprofileform(forms.Form):
     employee_name = forms.CharField(max_length=100)
     employee_number = forms.IntegerField()  
     employee_email = forms.EmailField()
     employee_mobilenumber = forms.IntegerField()  
     employee_address = forms.CharField()
          .....?
iam using django 1.2
request Method:GET
Request URL:http://localhost:9999/
Exception Type:ViewDoesNotExist
Exception Value:Tried main in module app.main.views. Error was: 'module' object has no attribute 'Form'
Exception Location:/home/user/google_appengine/lib/django_0_96/django/core/urlresolvers.py in _get_callback, line 129

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate