python - How to run django-project? -



python - How to run django-project? -

please help solve problem.

i created next directory construction django-project:

blogik5_project -blogik5_env -bin -lib -local -blogik5 - - -

in file home/.profile prescribed:

export workon_home=$home/.virtualenvs/blogik5_project export project_home=$home/.virtualenvs/blogik5_project/blogik5 source /etc/bash_completion.d/virtualenvwrapper

switched virtual environment:

workon blogik5_env

moved directory blogik5_project/blogik5

run:

python manage.py runserver

as result received next error message:

(blogik5_env)kalinins@kalinins-lenovo-z580 ~/.virtualenvs/blogik5_project/blogik5 $ python manage.py runserver traceback (most recent phone call last): file "manage.py", line 8, in <module> django.core.management import execute_from_command_line importerror: no module named django.core.management

you must install django pip:

pip install django

next,

django-admin.py startproject nameofproject

more documentation in: https://docs.djangoproject.com/en/1.7/

python linux django virtualenv mint

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -