Because Django itself is written by Python, you first install Python. (Can download according to reader's current version): http://www.python.org/download/releases/3.3.4/
Django's: https://www.djangoproject.com/download/
Currently Django 1.6x and above are fully compatible python3x
- 2
Install Python, open Python-3.3.4.msi and then direct next to install.
Note that in order to next use the Python command under DOS, configure the environment variable here. Right-click Computer, properties, advanced environment variable, modify the system variable path, add the Python installation address, the author here is C:\Python33;
- 3
After Django is downloaded as a compressed package, unzip and Python are placed in the same root directory, under DOS into Django-1.6.2 (the reader may be different version) directory, execute Python setup.py install, and then start the installation, Django will be installed into Python's lib under Site-packages.
- 4
Then, configure the environment variables to add these directories to the system environment variables:
C:/python33/lib/site-packages/django; C:/python33/scripts.
Once added, you can use the Django django-admin.py command to create a new project.
- 5
To check if the installation is successful, you can view the Django version under DOS into the Django-1.6.2 directory.
1. Enter Python
2. Enter the import Django
3. Enter Django.get_version ()
Installing Django under Windows