In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to install web Django". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Concept
Django is a kind of
Free and open source advanced python Web application framework
For rapid development of Web websites
Built by experienced developers
It solves most of the troubles of Web development.
So you can focus on writing applications
Without having to reinvent the wheel.
Architecture design
Django is based on MVC mode
Where M stands for model (model)
V stands for view (view)
C stands for controller (control)
But in Django,
The part of the controller that accepts user input
To be handled by the framework itself
So the architecture that is more focused on in Django is
MTV
T stands for template (Template)
Advantages
Reusability
Easy to maintain
Easy to expand
Reduce the amount of code
Install Django
First, we need to install Django.
Because Django is written by python
So the version of Django installed needs to correspond to your own version of python.
Otherwise, the installation will go wrong.
Use the following figure to install the corresponding Django according to your own python version
In addition, you will also find that some tags LTS
Some don't.
Here's an explanation.
LTS is a stable version.
Less bug
The other is the development version.
Usually we choose LTS.
Because my python version is 3.6.
Choose to install the latest version of 2.2LTS
Pip install django==2.2 # "=" is used to specify the version number
After the installation, let's check whether the installation is successful.
Python-m django-- version # if the version number appears, the description of the successful installation of "how to install web Django" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.