Y22 - PFSD - Django First Class
Y22 - PFSD - Django First Class
Django is a high-level Python web framework that encourages rapid development and clean,
pragmatic design.
Official Website - https://www.djangoproject.com/
Django follows the Model-View-Template (MVT) pattern.
The Model-View-Template (MVT) is slightly different from MVC. In fact the main difference
between the two patterns is that Django itself takes care of the Controller part.
Django comes with a lightweight web server for developing and testing applications.
Application Structure
__init__.py − Treat this folder as package.
admin.py − This file helps you make the app modifiable in the admin interface.
models.py − the application models are stored.
tests.py − This is where your unit tests are.
views.py − application views.
urlpatterns = [
path('',views.home, name = 'home')
]