Practical drills of Python efficient development practice-built-in Web server 4, simulated doll practice Diagram
Practical drills of Python efficient development practice-developing Django site 1
Practical practice of efficient Python development-application Building 2
Practical drills for efficient Python development-basic view 3
Through the previous configuration and coding process, you can't wait to check the website effect. To view the website effect, you must first use manage. py to start the Web server. The Code is as follows:
#cd djangosite#python manage.py runserver 0.0.0.0:8001 Performing system checks...System check identified no issues (0 silenced).February 22, 2016 - 07:53:07Django version 1.9.2, using settings'djangosite.settings'Starting development server at http://0.0.0.0:8001/Quit the server with CONTROL-C.
Here, runserver is the keyword for starting a website, and the following parameters specify the IP address and port number bound to the website. Use 0.0.0.0 to bind all IP addresses of the local machine. You can press Ctrl + C to exit the operation.
Note: The Web Server started in this way is a built-in Django Web server. for performance reasons, it can only be used for testing by developers. Officially running websites should be started using the WSGI method described later in this chapter.
After starting the Web server, you can access http://xx.xx.xx.xx/app/to check the welcome message and effect.
Interested readers can look at the structure of this book "efficient Python development practices"