I was wondering why this works:
sys.path.append('/home/user/django')
sys.path.append('/home/user/django/mysite')
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
but this doesn't?
sys.path.append('/home/user/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
I thought that adding the django folder would automatically make all projects/folders in it available to python? But apparantly I have to add the project as well, or it gives me the error 'settings not found'.
Notice that it doesn't say 'mysite.settings not found' which would indicate it does find my 'mysite' folder..