Build a Django environment in Windows and build a windowsdjango Environment
Overall:
Build a Django environment in Windows
1. Install Python
2. Install the pip tool. This will be automatically installed in Python. In the Scripts folder under your python installation command
3. django. The first method is to install it through pip. In windows 7, you only need pip install django. The second method is to install python by using the source code. install Python setup. py install after git clone https://github.com/django/django.gitdownload source code.
4. Check if Django is successfully installed.
> Python # enter the python environment >>> import django >>> print django. get_version ()
5. Create the first django Application
After django is installed, the django-admin command can be created through django-admin startproject mysite;
Go to the directory and start the application through python manage. py runserver.
6. Go to http: // localhost: 8000/
6. I like to directly use PyCharm to load the mysite folder and then run it directly. Later code compilation and modification will be very convenient.
7. Of course, after installing Django with pip, you can directly create a project with PyCharm.