Pycharm running the Django server side, IP address access

Source: Internet
Author: User
Tags django server

Installing Django

Download the Django package and unzip it.

CMD into the decompression path.

Execute: Python install

Add Environment variables:


Test if Django is installed successfully


Import Django


Import Django into the project

CMD into the project path

Execute Startproject project name

Run the development server

Project Django path under Python runserver


Python Runserver 8000


By specifying an IP address, you can tell the server – Allow non-local connection access. This feature is especially useful if you want to share the same development site with other developers. The ' ' IP address tells the server to listen on any network interface.

Python runserver The above is the Django server running at CMD Terminal next to run on the server side on Pycharm:If you run the program directly, you will be prompted with a lot of things, that is, the hint is not passed parameters. So on the pycharm on the parameters to run: Operate as follows open the file in the upper right corner of the Pycharm click Edit Configurations Editing configuration parameter points Open after the following dialog box, in scrip parameters  In the corresponding dialog box, enter the configuration parameters Runserver When the configuration is complete, click OK to finish. After configuring the above information, press CTRL+SHIFT+F10 to run the file: The following results appear D:\Python27\python.exe d:/djangotext01/ runserver
Performing system checks ...

System Check identified no issues (0 silenced).

You have unapplied migrations; Your app properly until they is applied.
Run ' python migrate ' to apply them.
July 26, 2015-22:10:52
Django version 1.8.2, using Settings ' djangotext01.settings '
Starting development Server at Http://
Quit the server with Ctrl-break.
d:\python27\lib\site-packages\django-1.8.2-py2.7.egg\django\utils\translation\ Removedindjango19warning:the use of the language code ' ZH-CN ' is deprecated. Please use the ' Zh-hans ' translation instead.
The return _trans.activate (language) configuration is complete and will default to the above configuration parameters when it is started later. After configuring the above information, enter in the browser to return the following results: Remarks: Adding in setting Configuration: Parametersallowed_hosts=[' ']   

Pycharm running the Django server side, IP address access

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: 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.