Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deploy Django in win10 system

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you how to deploy Django in the win10 system, the content is concise and easy to understand, it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

1. First of all, install the latest version of python, I have the latest version here is 3.7.3, there are many methods on the Internet, it should be mentioned that when installing, you must check to add Path.

two。 Download apache

a. Select download

b. Select windows version

c. Select ApacheHaus

d. Select 2.4 VC15 version

Be sure to choose this one, otherwise the service will not start up later, and it is very distressing to report this mistake:

AH00526: Syntax error on line 34 of C:/Apache24/conf/extra/httpd-ahssl.conf:

SSLProtocol: Illegal protocol 'TLSv1.3'

It should be that the old version does not recognize TLSv1.3. I have been working on this Django here for a long time before I finally see the version of VC15. Download this and continue to do the service.

3. After downloading, unzip it and put the extracted Apache24 folder in the location you want (example is in the root directory of C disk)

4. Configure apache server files

Go to C:\ Apache24\ conf directory, locate httpd.conf (the configuration file of apache server), make the following modifications, and pay attention to your own path:

.. the path to the Define SRVROOT "C:\ Apache24" # Apache24 file, and the rest need not be changed. ... Listen 192.168.1.10 ServerName 8886 # here is the ip address of the website you want to publish, here I use my computer's ip and port, you can also use 127.0.1 ip for local testing; port 80 is set up by yourself.

5. Create an apache service

The administrator opens CMD and goes to apache/bin.

Cd / DC:\ Apache24\ bin

Enter the following code to create the service

Httpd.exe-k install-n "apache2.4" # apache2.4 is the name of the server created and can be changed.

The appearance of successfully installed indicates that the service has been created successfully

At this time, the service test may not be successful. To solve the problem according to the error code, you can start the apache2.4 service repeatedly in the computer service to check the cause of the error in the windows log.

6. Start the apache2.4 service to ensure that the service starts

7. Enter the address entered above (mine is 192.168.1.10 purl 8886) and find the following page in the browser to prove the success

The above content is how to deploy Django in win10 system. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report