While trying to construct an example from the django book chapter7.
I used the following import code in my views.py
from mysite.form.forms import ContactForm
now ContactForm is a class in forms.py located in
"D:\Django-1.3\django\bin\mysite\form"
where mysite=dir
form=dir
forms= python file
ContactForm =Class
Ultimately i get this error
ImportError at /contact
No module named form.forms
Request Method:
GET
Request URL:
http://127.0.0.1:8000/contact
Django Version:
1.3
Exception Type:
ImportError
Exception Value:
No module named form.forms
Exception Location:
D:\Django-1.3\django\bin\mysite\views.py in <module>, line 4
Python Executable:
D:\Python27\python.exe
Python Version:
2.7.2
Python Path:
['D:\\Django-1.3\\django\\bin\\mysite',
'D:\\Python27\\Lib\\site-packages',
'D:\\Django-1.3\\django\\bin',
'C:\\WINDOWS\\system32\\python27.zip',
'D:\\Python27\\DLLs',
'D:\\Python27\\lib',
'D:\\Python27\\lib\\plat-win',
'D:\\Python27\\lib\\lib-tk',
'D:\\Python27']
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.