How do you build a Django development environment based on the Eclipse + PyDev build Python development environment?
Open the command line and enter it at the command line:
Conda Install Django
The installation process is as follows:
Fetching package metadata ....... Solving Package Specifications:. Package plan for installation in environment C:\anaconda3:the following NEW packages would be installed: django:1.10.5 -py36_0proceed ([y]/n)? ydjango-1.10.5-100% |###############################| time:0:00:44 91.94 kb/s
After the installation is complete, enter at the command line:
Conda List
To see if there is a Django library that you just installed, the results are as follows:
Django 1.10.5 py36_0
It means we've installed the Django library.
Open the command line input python into the Python environment, and then enter the import Django code as follows:
C:\users\administrator>pythonpython 3.6.0 | Anaconda 4.3.1 (64-bit) | (Default, Dec 23 2016, 11:57:41) [MSC v.1900 (AMD64)] on Win32type ' help ', ' copyright ', ' credits ' or ' license ' for more information.>>> imp ORT django>>>
There was no error stating that the Django installation was successful.
Enter exit () to exit the Python environment.
At the command line, enter:
Django-admin Startproject Zls
Create a Django project called Zls.
Input:
CD Zls
Enter the ZLS project directory.
Input:
Python manage.py runserver 0.0.0.0:8000
To start the Django server. You can then access it in the browser input http://127.0.0.1:8000/, as follows:
A Django project with the project name Zls is created successfully. The next thing is to develop a Django project.
Window 7 64-bit build Django development environment