Create API by Python
Last renew: July 5, 2022 pm
Framework:Django
The Description of Django:
Django is a open-source web application framework writted by Python.
Django is based on MVC model (MVC = Model + View + Controller)
The merits of Django:
- Powerful database functions
- Powerful backend functions
- Elegant URL
MVC model
The diagram of MVC model.
![截屏2022-05-03 09.06.44](Create-API-by-Python/截屏2022-05-03 09.06.44.png)
The merits of MVC model:
- low coupling
- Fast development
- Easy to deploy
- High reusability
- Low maintenance cost
Install django for mac with anaconda environment
Open the terminal of Pycharm and write:
1 |
|
Then we are ready to finish the installation.