Skip to content

cabyas/django-crud-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Pages

Home Page:

Home Page

Create and update Pages:

(The pages for creating and updating look like the same)

create/update page

Details Page:

Details page

Delete confirmation Page:

Delete Page

installation

  • 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