setup a new virtualenv for django in windows

11
Setup a New Virtualenv for Django in Windows

Upload: sivasubramaniam-arunachalam

Post on 24-Dec-2014

487 views

Category:

Technology


1 download

DESCRIPTION

Setup a New Virtualenv for Django in Windows

TRANSCRIPT

Page 1: Setup a New Virtualenv for Django in Windows

Setup a New Virtualenv for Django in Windows

Page 2: Setup a New Virtualenv for Django in Windows

Create a New Virtual env

> virtualenv.py mytodo

Page 3: Setup a New Virtualenv for Django in Windows

Activate the Environment

> Scripts\activate

Page 4: Setup a New Virtualenv for Django in Windows

Install Django using pip

> pip install django

Page 5: Setup a New Virtualenv for Django in Windows

Verify the installation

> pip freeze

Page 6: Setup a New Virtualenv for Django in Windows

Installing Database Drivers

(Optional)

Page 7: Setup a New Virtualenv for Django in Windows

Install mysql-python using easy_install

> easy_install mysql-python

Page 8: Setup a New Virtualenv for Django in Windows

Verify the installation

> pip freeze

Page 9: Setup a New Virtualenv for Django in Windows

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

Page 10: Setup a New Virtualenv for Django in Windows

Verify the installation

> pip freeze

Page 11: Setup a New Virtualenv for Django in Windows

Base environment is ready!