A simple example to help to understand how Generic Views works in Django.
Change to fbv-vs-cbv
branch to see the same implementation using Class-based Views and Function-based Views.
Home Page:
Create and update Pages:
(The pages for creating and updating look like the same)
Details Page:
Delete confirmation Page:
-
Create a new virtual environment. If you don't know how to do it, you can learn here
-
Install the requirements:
pip install -r requirements.txt
- run the migrations:
python manage.py migrate
- Run the develop server:
python manage.py runserver