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 start a django project from github with pycharm

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly introduces "how to start a django project from github with pycharm". In daily operation, I believe many people have doubts about how to start a django project from github with pycharm. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to start a django project from github with pycharm". Next, please follow the editor to study!

The first step is to open pycharm and click on the right side of Check out from Version Control in the launch window

Drop-down triangle

The second step is to select Git. The third step is to clone the repository.

URL: fill in the clone address of github or gitee and click the Test on the right to test.

Directory: fill in the project file save location (all project files are saved in a folder named with the warehouse name and choose the correct location)

When you are finished, click the Clone button at the lower right.

Success will bring up the following page

Step 4: configure the development environment

Click the menu File → Settings → Project Interpreter

Click on the pinion, you can choose to add a new interpreter path or display and select an existing interpreter according to your own needs. Take show all as an example.

You can see that there is no interpreter currently. Click + on the right to add a new interpreter environment.

Virtualenv Environment: virtual environment interpreter, which requires virtualenv to be installed on the system

Conda Environment: Conda needs to be installed on the system

Pipenv Environment: Pipenv Environment needs to be installed on the system

System Interpreter: directly use the python interpreter in the system environment

SSH Interpreter: set up a remote virtual environment using ssh connection

Vagrant: need to be used with Vagrant

Docker, Docker Compose: need to be used with Docker

Take Virtualenv Environment as an example.

Location: the path saved by the interpreter

Base Interpreter: interpreter in the basic system environment

Inherit global site-packages: copy the packages installed by the system as well

Make available to all projects: apply the currently set interpreter to all projects

Generally speaking, the above two options are not checked, but also pay special attention to the path to save the interpreter, naming must not be the same as the project name.

Existing environment is to choose a virtual environment that already exists.

After the configuration is complete, click Ok, and the progress bar of Creating Virtual ENVIRONMENT will appear.

After the creation is successful, the created interpreter appears in the window and click Ok

Then, install the django package and click the plus sign

Search for django. After selecting the version, click Install Package.

Click Manage Respositories to choose to add domestic mirror sources to download faster. After the installation is successful, there will be a prompt for successful installation. It usually takes a certain amount of time for Pycharm to configure the interpreter.

Step 5, configure the Django development server

Click

Click the plus sign again and select Django Server to add a new configuration

At this point, it can be configured according to the previous configuration method.

Click on the green triangle and the server starts.

All configurations are completed above. It can be developed on this machine.

At this point, the study on "how to start a django project from github with pycharm" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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