Projects and Apps
Structure a Django project.
What is Django?
Django is a batteries-included Python web framework. It bundles an ORM, admin site, templating, and more so you can build full-featured sites quickly. Install with pip install django.
import django
print('Django version:', django.get_version())Projects vs Apps
Django separates two concepts:
- A project is the whole website, with its settings.
- An app is a reusable module inside it, like a blog or a shop.
One project contains many apps.
# project = the site
# app = a feature module within it
print('Project holds many apps')All lessons in this course
- Projects and Apps
- Models and Migrations
- Views and URLs
- The Django Admin