Error finding manage.py

When these commands are executed the way they're explained you get an error this error when you try to sync the database the first time:

(env) replaceafill@laptop:~/tutorial$ python manage.py migrate
python: can't open file 'manage.py': [Errno 2] No such file or directory

The reason is that after the quickstart app is created you have to stay in the tutorial project directory for this (and the rest of the commands below) to work.
This commit is contained in:
Douglas Cerna 2016-08-19 00:52:33 -06:00 committed by GitHub
parent 382ea770b5
commit 4fe608db18

View File

@ -22,7 +22,6 @@ Create a new Django project named `tutorial`, then start a new app called `quick
django-admin.py startproject tutorial . # Note the trailing '.' character
cd tutorial
django-admin.py startapp quickstart
cd ..
Now sync your database for the first time: