Installing Django to virtualenv on Windows

Hi
I have set up a virtualenv and installed django after activating the virtualenv (env). I can see the django-admin.py file in the scripts folder within env. However when i try running
.\scripts\django-admin.py startproject projectname

Open in new window

it opens the file in notepad rather than running the python script.

Where have I gone wrong?
thanks
lz7cjcAsked:
Who is Participating?
 
Walter RitzelSenior Software EngineerCommented:
Try this:
python .\scripts\django-admin.py startproject projectname

Open in new window

1
 
lz7cjcAuthor Commented:
easy when you know how, isn't it! thank you
0
 
Ben McNellyCommented:
I would also suggest trying out virtualenvwrapper when using virtualenv
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.