Python Learning Notes (1)--python Language Web development Framework Web2py

Source: Internet
Author: User
Tags web2py

Python Basics


python Language Web development Framework web2py

Create a project:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/B3/wKiom1WDAWrRgyGIAAErQBwh84g410.jpg "title=" Qq20150619012934.jpg "alt=" Wkiom1wdawrrgygiaaerqbwh84g410.jpg "/>


Project Name set to MyWeb

After the creation is complete, it runs:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6E/B4/wKiom1WDEFuzipI0AAILzoIZWxU024.jpg "title=" Qq20150619023815.jpg "alt=" Wkiom1wdefuzipi0aailzoizwxu024.jpg "/>



Working with static files

Placed in the static directory, accessed directly through the file path in the Address bar:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/B0/wKioL1WDFBOxBa3qAAC1-QIbgl4068.jpg "title=" Qq20150619024737.jpg "alt=" Wkiol1wdfboxba3qaac1-qibgl4068.jpg "/>


Controller:

Add a file under Controllers.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/B0/wKioL1WDFi7BGhbMAADSNxQv4nE623.jpg "title=" Qq20150619025632.jpg "alt=" Wkiol1wdfi7bghbmaadsnxqv4ne623.jpg "/>

Visit: Http://127.0.0.1:8000/main/hello/hello




Geek College: http://www.jikexueyuan.com/course/201.html

Python Learning Notes (1)--python Language Web development Framework Web2py

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.