Practical drills of Python efficient development practice-built-in Web server 4, simulated doll practice Diagram

Source: Internet
Author: User
Tags django web server

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"

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.