On Thu, 2011-06-02 at 05:29 -0700, Kann wrote:
> Thanks Oscar, I read the page already, but am still not totally
> understood. The page said the value of DJANGO_SETTINGS_MODULE should
> be "Python path syntax", e.g.  mysite.settings. What exactly is
> "Python path syntax"? Would it be ok if I just provide the value as a
> file name? Perhaps, "new_setting.py"? 

assume that you have a directory called 'mysite'. In this directory you
will have to have an empty file called __init__.py. Then any file in
that directory with a 'py' extension can be imported leaving out the
extension. For example, foo.py can be imported as mysite.foo instead of
mysite/foo. For this to work, 'mysite' should be on the python path.
-- 
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

-- 
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.

Reply via email to