Issue
I have installed python 2.7.10 in windows. I installed django in path c:python27/scripts/
with a command pip install django
and created project with command django-admin startproject mysite
from the same path.
Now to run server i cd to path c:python27/scripts/mysite
and ran a command manage.py runserver
/ manage.py runserver 0.0.0.0:8000
And this has no any effect.
where did i go wrong, and also i couldn't run with python console. and i couldn't redirect to my project from python CMD. all i did is from windows console.
Solution
First step was to set the environment variable.
windows key
+pause
orControl Panel\System and Security\System
- Advance system settings (this will open system property)
- navigate to
Advanced tab
>Environment variable
- Edit path - append
;c:\python27
in variable value field - Restart CMD
then /python manage.py runserver
should work
Answered By - Suman KC
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.