VS2013 Python Learning Notes [first Web page of Django web]

Source: Internet
Author: User
Tags virtual environment

Objective

I briefly introduced Python's Hello World in the front. See someone asked me to engage in the Python web, on a whim, to try.

The first VS2013 Python learning notes [Environment Building] provides a brief introduction to the construction of the Python environment and the implementation of Hello World.

The second VS2013 Python learning note [Basic primer] I learned a few basics of Python using a few basic knowledge points.

First Web page

First step : first open the VS2013 development tool, create a new project, and select the Django project template.

Modify the project name to see the file structure of the project

Step Two: right-click on Python environments

Step Three: click Add Virtual Environment

Fourth Step: Click Create To see the changes in the project structure

1, __init__.py : Let Python treat the directory as a required file for a development package (that is, a set of modules). This is an empty file and it is generally not necessary to modify it.

2, settings.py : The setup or configuration of the Django project. View and understand the types of settings available in this file and their default values.

3. urls.py: The URL setting for the Django project. A directory that you could visualize as a Django site. Currently, it is empty.

4. wsgi.py : A portal for a WSGI-compatible Web server.

Fifth Step: Click env (Python 64-bit 3.3)

Sixth step: Click the Install Python package

Seventh Step: continue to enter Django above, click OK.

Eighth Step: Click OK to install, wait for the installation, this time may be a little longer, see as shown in the interface instructions installed successfully.

nineth Step: After the installation is successful, F5 can run.

The Web page actually ran successfully.

Summarize

The simple nine Department I realized the success of the website operation. So now I need to come to realize my hello world.

Find urls.py to modify file

Next, add the views.py file under the Djangodemo folder and add the following code

OK, to F5 run to see the effect of it.

Everything was so smooth.

Personal website Address: aehyok.com

QQ Technology Group Number: 206058845, Verification code: Aehyok

This article links to: http://www.cnblogs.com/aehyok/p/3995697.html

Thank you for your reading, if you are interested in the content of my blog, it is advisable to point a recommendation, thank you for supporting:-O.

VS2013 Python Learning Notes [first Web page of Django web]

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.