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
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
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
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
4 matches
Mail list logo