开发者

Can't get python.manage.py syncdb to work

开发者 https://www.devze.com 2022-12-28 05:50 出处:网络
I just created my first django app, initialized variables DATABASE_ENGINE and DATABASE_NAME in settings.py, but now when I run python manage.py syncdb, I g开发者_StackOverflowet the following error Ca

I just created my first django app, initialized variables DATABASE_ENGINE and DATABASE_NAME in settings.py, but now when I run python manage.py syncdb, I g开发者_StackOverflowet the following error Can somebody help? Does this have to do with having two python versions installed?

I'm a django/python noob, please help. thanks!!

my-computer:~/Django-1.1.1 mycomp$ python manage.py syncdb
    /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python: can't open file 'manage.py': [Errno 2] No such file or directory
    my-computer:~/Django-1.1.1 mycomp$ export PATH=/Users/mycomp/bin:$PATH


You need to run manage.py from the root folder of your project. Looks like you are trying from the Django install folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号