Window 7 64-bit build Django development environment

Source: Internet
Author: User
Tags django server install django

How do you build a Django development environment based on the Eclipse + PyDev build Python development environment?

Open the command line and enter it at the command line:

Conda Install Django

The installation process is as follows:

Fetching package metadata ....... Solving Package Specifications:. Package plan for installation in environment C:\anaconda3:the following NEW packages would be installed:    django:1.10.5 -py36_0proceed ([y]/n)? ydjango-1.10.5-100% |###############################| time:0:00:44  91.94 kb/s

After the installation is complete, enter at the command line:

Conda List

To see if there is a Django library that you just installed, the results are as follows:

Django                    1.10.5                   py36_0

It means we've installed the Django library.

Open the command line input python into the Python environment, and then enter the import Django code as follows:

C:\users\administrator>pythonpython 3.6.0 | Anaconda 4.3.1 (64-bit) | (Default, Dec 23 2016, 11:57:41) [MSC v.1900 (AMD64)] on Win32type ' help ', ' copyright ', ' credits ' or ' license ' for more information.>>> imp ORT django>>>

There was no error stating that the Django installation was successful.

Enter exit () to exit the Python environment.

At the command line, enter:

Django-admin Startproject Zls

Create a Django project called Zls.

Input:

CD Zls

Enter the ZLS project directory.

Input:

Python manage.py runserver 0.0.0.0:8000

To start the Django server. You can then access it in the browser input http://127.0.0.1:8000/, as follows:

A Django project with the project name Zls is created successfully. The next thing is to develop a Django project.

Window 7 64-bit build Django development environment

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.