python - ImportError when starting django server on centos -
i have installed python virtualenv
, django
on virtual private server running on centos 6.5.
assigned python version 2.7 alias python
command
(because have python 2.6.6 installed previously).
then run:
django-admin startproject mysite cd mysite
after django creates new project, try run web-server typing
python2 manage.py runserver 0.0.0.0:8000
when try connect website shows me err_connection_time_out
error in browser.
have checked whether firewall blocking port or not, doesn't.
when type python manage.py runserver 0.0.0.0:8000
(difference previous call call python, not python2)
it shows me output:
traceback (most recent call last): file "manage.py", line 8, in <module> django.core.management import execute_from_command_line importerror: no module named django.core.management
what solution problem?
Comments
Post a Comment