Re: Why isnt this simple import working??

2011-08-07 Thread Rafael Durán Castañeda
From: hayya...@hotmail.com To: django-users@googlegroups.com Subject: RE: Why isnt this simple import working?? Date: Sun, 7 Aug 2011 19:48:03 + I think i know why this isnt working becuase the form folder does not have an init.py init.py init. So my qustion is how do u import a

RE: Why isnt this simple import working??

2011-08-07 Thread Hayyan Rafiq
Got it working just inserted a init.py file init. so it got recognized as a python directory From: hayya...@hotmail.com To: django-users@googlegroups.com Subject: RE: Why isnt this simple import working?? Date: Sun, 7 Aug 2011 19:48:03 + I think i know why this isnt working

RE: Why isnt this simple import working??

2011-08-07 Thread Hayyan Rafiq
I think i know why this isnt working becuase the form folder does not have an init.py init.py init. So my qustion is how do u import a class from a python file in a random folder? From: hayya...@hotmail.com To: django-users@googlegroups.com Subject: Why isnt this simple import working?? Date

Why isnt this simple import working??

2011-08-07 Thread Hayyan Rafiq
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 Con