My personal preference is to use eclipse. Here's how to write Django code with eclipse.
First: Install Python. In order to facilitate management, so I used the Anaconda3.
2nd step: Install Django. Enter the Anaconda directory. Execute command: Conda install Django until the system prompts for Django success.
3rd Step: Install the Pydev plugin in eclipse. This plugin is used to write Python code. See the link below for the method of installing the plugin. Http://www.pydev.org/manual_101_install.html
4th step: In Eclipse, configure Pydev.
Through the above steps, to build a good development environment. Enter the development process below.
Enter File->new->other from the menu bar
Select the Pydev->django menu:
This is a Django project that eclipse has for us to survive.
Right-click on the project panel to run the project and then verify it in the browser.
Eclipse writes a Django program