For your information, I am going to use Microsoft Visual Code Studio to develop Python software based on django.
Prerequisites
- Install Visual Code Studio
- Install Python Extension - https://marketplace.visualstudio.com/items?itemName=ms-python.python
Install a version of Python 3
Code Block brew install python3
Info If you face any issue while installing by brew, please run following command to get more help.
Code Block brew doctor
Once Python 3 is installed, you should run following command for your convenience
Code Block brew link python
If you face error something like below
Code Block Linking /usr/local/Cellar/python/3.7.1... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
You can fix it as following
Code Block sudo mkdir /usr/local/Frameworks sudo chown $(whoami):admin /usr/local/Frameworks brew link python
Create a project environment for Django
Code Block mkdir py cd py python3 -m venv env
From above, I just created project folder as py and setup virtual environment that means we will start project on that folder. You can use different name instead of "py".
The documentation I referenced is actually located at https://code.visualstudio.com/docs/python/tutorial-django, so you can know more if you have any additional doubt or curious.