Setup a New Virtualenv
for Django in Windows
Create a New Virtual env
> virtualenv.py mytodo
Activate the Environment
> Scriptsactivate
Install Django using pip
> pip install django
Verify the installation
> pip freeze
Installing Database Drivers

(Optional)
Install mysql-python using
easy_install

> easy_install mysql-python
Verify the installation
> pip freeze
Install psycopg using easy_install

> easy_install <URL>
URL(32-bit): http://www.stickpeople.com/projects/python/win-psyco...
Verify the installation
> pip freeze
Base environment is ready!
Upcoming SlideShare
Loading in …5
×

Setup a New Virtualenv for Django in Windows

1,311 views

Published on

Setup a New Virtualenv for Django in Windows

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,311
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Setup a New Virtualenv for Django in Windows

  1. 1. Setup a New Virtualenv for Django in Windows
  2. 2. Create a New Virtual env > virtualenv.py mytodo
  3. 3. Activate the Environment > Scriptsactivate
  4. 4. Install Django using pip > pip install django
  5. 5. Verify the installation > pip freeze
  6. 6. Installing Database Drivers (Optional)
  7. 7. Install mysql-python using easy_install > easy_install mysql-python
  8. 8. Verify the installation > pip freeze
  9. 9. Install psycopg using easy_install > easy_install <URL> URL(32-bit): http://www.stickpeople.com/projects/python/win-psycopg/2.5.1/psycopg2-2.5.1.win32-py2.7-pg9.2.4-release.exe URL(64-bit): http://www.stickpeople.com/projects/python/win-psycopg/2.5.1/psycopg2-2.5.1.win-amd64-py2.7-pg9.2.4-release.exe
  10. 10. Verify the installation > pip freeze
  11. 11. Base environment is ready!

×