Re: Django environment setup path problem

2013-02-13 Thread Bill Freeman
This is a version 1.4 Django. Yes? Try adding to manage.py, between the "if ..." line and the "os.environ..." lines, and indented like the "os.environ..." line: import pdb;pdb.set_trace() Then run: $ ./manage.py shell When it stops at the breakpoint, type: p os.environ['DJANGO_SETTI

Re: Django environment setup path problem

2013-02-13 Thread Yussi
I see what you're doing, (It did take me half an hour of staring at your email though) The steps are: $django-admin startproject myproj $cd myproj $vi myproj/settings.py than add your databases than run $./manage.py syncdb not django-admin syncdb On 13/02/13 13:54, Bill Freeman wrote: How are

Re: Django environment setup path problem

2013-02-13 Thread Bill Freeman
How are you invoking manage.py? Try cd'ing to the directory containing it before running it and see if that helps. (That directory will then automatically be on python's sys.path, which is needed. DJANGO_SETTINGS_MODULE must be a python style package.module style path, not a filesystem path, so d

Django environment setup path problem

2013-02-13 Thread kulbhushan patariya
Hi, I have following problem regarding Django. Can anyone help me out - kbjp@kbjp-VGN-CS35GN-B:~/Desktop/kbproject/firstjango$ django-admin.py syncdb Traceback (most recent call last): File "/usr/local/bin/django-admin.