Django is an open-source Web application framework written by Python. The MVC Software Design pattern is used, i.e. model M, view V and Controller C. It was originally developed to manage some of the news content-based websites of the Lawrence Publishing Group, namely CMS (Content management system) software. and was released in July 2005 under the BSD license. The framework is named after the Belgian gypsy jazz guitarist Django Reinhardt. Here's how to install Django under Windows.
Tools/Materials
django-1.6.2
Python 3.3.4
Method/Step
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
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;
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.
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.
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 ()