Created
September 14, 2012 07:05
-
-
Save muneebpv/3720383 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setting up django on windows(32bit) | |
1. Install latest version of python (2.6 or higher).remember python 3.0 have no support for django. | |
http://www.python.org/download/ | |
Add your python c:\Python2x to path(Control Panel > System > Advanced > Environment Variables) | |
for example:if python 2.7 is installed then path will look like c:\Python27 | |
Control Panel > System > Advanced > Environment Variables | |
2. Install setuptools for your windows version from | |
http://pypi.python.org/pypi/setuptools#downloads | |
if you have any difficulty in installing it. please run the file using python interpretter(IDLE) | |
3. Download and install pip from | |
http://pypi.python.org/pypi/pip#downloads | |
installing pip | |
a)unzip your pip folder | |
b)go to the uncompressed pip directory and: python setup.py install | |
c)Add your python c:\Python2x\Scripts to the path | |
4. Now you can install any python packages using pip | |
pip install package_name | |
we can install and download django by this command | |
"pip install django" | |
this will download and install django. | |
5. you can install mysql dependencies by this command | |
pip install mysql-python | |
or | |
http://sourceforge.net/projects/mysql-python/ | |
6. For localisation you need xgettext | |
a) Win32 users need to dowload 3 zip files from ?http://sourceforge.net/projects/gettext : | |
a1)gettext-runtime-X.bin.woe32.zip | |
a2)gettext-tools-X.bin.woe32.zip | |
a3)libiconv-X.bin.woe32.zip | |
b) extract the 3 files in the same folder ( ie C:\Program Files\gettext-utils ) | |
c)Update the system PATH : | |
Control Panel > System > Advanced > Environment Variables | |
ie, C:\Program Files\gettext-utils\bin" at the end of the "Variable value" windows | |
Note: | |
For 64bit windows you install it using cygwin | |
http://cygwin.com | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pip install mysql-python