Question

Je viens de créer ma première application django, les variables initialisées DATABASE_ENGINE et DATABASE_NAME dans settings.py, mais maintenant quand je lance python manage.py syncdb, je reçois l'erreur suivante peut-elle aider quelqu'un? Est-ce que cela a à voir avec avoir deux versions de Python installées?

Je suis un django / python noob, s'il vous plaît aider. merci !!

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
Était-ce utile?

La solution

Vous devez exécuter manage.py à partir du dossier racine de votre projet. On dirait que vous essayez à partir du dossier d'installation de Django.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top