The WEB2PY framework for Python learning

Source: Internet
Author: User
Tags web2py

Learning Python was meant to be fun, but it was found that the language was as simple as people's, so that the block was close to human language, which brought great benefits to the developers themselves.
Anyway is learning to play, I will start from the web framework web2py directly to learn.
First, when we set up a good python environment, directly using Pycharm to operate the WEB2PY project, and then run, to remember that the port default is 8000, it is recommended not to change, so as not to conflict with other services, start the service, into a default application interface, This is the implementation of the basic site hierarchy, of course, the focus is to say the architecture, nature is based on MVC, and the structure of PHP is not much different, upload pictures problems, I will not upload ...

such as: HTTP://127.0.0.1:8000/MAIN/F1/F2
Where main is the application name, F1 is the controller name, F2 is the method name under the F1 controller, and the default is the index method.

Through this, we can analogy PHP thinkphp framework, they all have the same original problem, because their architectural ideas are the same, so, learning is so, learn a technology, another door is comprehend by analogy.

The WEB2PY framework for Python learning

Related Article

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.