Pythonweb Development Tutorial (i), what to prepare before development

Source: Internet
Author: User
Tags install django pip install django

This blog series, mainly to write how to use Python to develop Web sites, web development, one to deepen their impressions, warm know new, and hope can help others want to learn pythonweb development friends.

What is web development, in fact, is to develop a website. What kind of knowledge does it take to develop a website?

1, Python basis, because the development of Python, so python specifies to be, at least you also have to be conditional judgment, loops, functions, classes of these knowledge;

2, the basic knowledge of HTML, CSS, because to develop the site, Web pages are HTML and CSS write, at least these knowledge you will, even if not write the front-end, the development of a particularly beautiful page, the site, at least to be able to read the HTML tag is;

3, the basic knowledge of the database, because the development of a Web site, the data exists where, that is, in the database, that you at least to the database of the additions and deletions to check it, or how to save data, take data?

Above these knowledge will, basically can, can develop a simple station there is no problem, if you want to develop a larger site, business logic is more complex, it will have to use other knowledge, such as Redis, MQ and so on.

Pre-development Preparation:

1. Install the python3.5 version.

2, the installation of Pycharm, is our development tool

3. Install Django, version 1.9, install with pip install django==1.9 command

4, install the Navicat or other operation of the database visualization tools, because we need to use the database, to see the database, change the data

Open a Web site in the browser, such as Open Besttest official website, is to besttest the service side sent an HTTP request, and then besttest the server received your request, the HTML of its Web site, CSS, these things back to your browser, browser parsing, Finish rendering the page and show it to you. So your browser and besttest server when you open the site to establish an HTTP connection, your browser and the Besttest server to send data to each other, you do not have to connect to shut down, this process is the HTTP request a life cycle.

You can visit Besttest's website, I can, other people can also, everyone is access to a server, server and different people to interact, then the server will have to start a port to listen to who has visited our site, access and you establish a connection to each other to send data. Then we want to develop the site, the first thing to achieve this function, or your website developed, others can not access the affirmative white pull. We develop our own words, but also involves a lot of how to parse the HTTP request, how to listen to what connection, how to handle the return data, how to remove the contents of the database into the HTML, the different URL path and how to deal with the data submitted by the user how to get, get, POST request how to handle and so on , thought so much, gave up directly. What to do, before we installed Django,django is a Python developed web framework, chatty, almost you use the method, it all has, it has implemented all the functions I just said, we just need to use it to use it. Of course, Python also has a lot of web development frameworks, such as web.py, flask, Tornado, bottle, and so on, they are in principle and Django, but they do not have Django, Django is the largest community, One frame with the most active users.

Pythonweb Development Tutorial (i), what to prepare before development

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.