It's all about sys.path and the semantics of import.
DJANGO_SETTINGS_MODULE must be a name that can be imported. Any dots in
the string divide the name into a number of names. The first name must be
findable via sys.path. If it is the last name, it can name a .py file.
Otherwise it must be the
It's kinda noob question,
but I have a working dev project inside directory
/var/www/django/myproject
os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
I want to change the folder of the project to something like:
/var/www/websites/il_co_project_name_www
but i get 500 Internal Server E
2 matches
Mail list logo