In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to create a django project, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Django is very powerful, especially django rest framework is very convenient to build REST API. This time let's create a project and see what django will look like after it is running properly. The python version used in this tutorial is the python3.7,django2.2 version and the pycharm Professional version. Please keep consistent with me.
First of all, we use pycharm to create a python virtual environment to ensure that this environment is only used by this project and will not be disturbed by other python environments.
Windows pycharm is a file (file)-- > Settings (setting)-- > Project (Project)-- > Project Interpreters
Mac version of pycharm is to click pycharm-> select the Preferences option to perform the corresponding operation.
To install django and its dependencies using pycharm, first select the corresponding python virtual environment. Here, select the version of django, pay attention to the arrow below, and click the install package button to install django.
After installing django, you can create a django project. Refer to the configuration in the figure below. Pycharm chooses to create django, configure the project folder location, and select the previously created python virtual environment (python under the bin folder). After configuration, you can click the create button to create your first django project. Django_tutrial2 is the name of your project.
After the creation should look like the following, some of the folder code is automatically generated for you by django, you directly click the run button in the upper right corner of pycharm (there is a triangle icon before running).
Click the address (http://127.0.0.1:8000/) of the menu below to access your first django project, as shown below:
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.