개발/Django
Models - Templates - Views (MTV)
Louisus
2020. 5. 5. 17:55
728x90
Connection of the models, views, templates
1. views.py
- Import any models that we'll need to use.
2. Use the view to query the model for data that we'll need.
3. Pass results from the model to the template.
4. Edit the template so that it is ready to accept and display the data from the model.
5. Map a URL to the view.