Quantcast
Channel: GSmith
Viewing all articles
Browse latest Browse all 12

Running manage.py through SSH

$
0
0
I have been having the problem trying to run manage.py on a live server.

Firstly as it is on linux, it is necessary to prepend windows style statements with python.

python manage.py runserver

instead of

manage.py runserver

Also, make sure you are using the correct version of python. E.g:

python2.7 manage.py runserver

If you don’t you will get an error about trying to import django.core.management :

File “manage.py”, line 2, in <module>
from django.core.management import execute_manager
ImportError: No module named django.core.management


Viewing all articles
Browse latest Browse all 12

Latest Images

Trending Articles



Latest Images