Re: Help with Django code.

2011-08-27 Thread GE
You haven't said which OS you use. If you are in a unix-based environment, I found this article very helpful. http://www.juiceanalytics.com/writing/django_settings_module/ Good luck On Aug 26, 5:28 am, Yaşar Arabacı wrote: > Try this, always worked for me, > > import os > import sys > # assuming

Re: Help with Django code.

2011-08-26 Thread Yaşar Arabacı
Try this, always worked for me, import os import sys # assuming this file resides at the same directory at settings file PROJECT_FOLDER = os.path.abspath(os.path.dirname(__file__)) UPPER_PATH = os.path.abspath(PROJECT_FOLDER + "/../") sys.path.append(UPPER_PATH) os.environ['DJANGO_SETTINGS_MODUL

Re: Help with Django code.

2011-08-25 Thread akaariai
On Aug 25, 10:26 pm, Dr00p wrote: > Hi, I need to get Django to run in my code and I am having trouble. > Every time I try to import my project (this is a seperate code I > created to generate polls) it gives an import error and says > DJANGO_SETTINGS_MODULE is not defined. > I have tried multiple