Python-based Django installation and configuration

Source: Internet
Author: User

Django is a popular framework used by Python to develop Web applications that integrates background rights management, models, forms, databases, and template functionality.

The Django installation and configuration process is as follows.

1. Download Django. Download the Django package locally from the Django website, unzip it, copy it to the appropriate directory according to your needs, and I'm locally placed in the D:\Program Files (x86) directory.

2. Install and configure Django.

(1) Open cmd command as Administrator, go to Django Unzip directory, install Django via python, command as follows: Python setup.py install. With the above command, Django will be installed into the Site-packages directory under the Python lib.

3. Create and start the project.

The Create Project command is as follows:Django-admin startproject testdj

switch to create project directory to start the service: python manage. PY runserver 0.0. 0.0:8000, open the browser input http://127.0.0.1:8000/can be accessed normally.

Python-based Django installation and configuration

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.