generated from devsforge/django-tpl
-
Couldn't load subscription status.
- Fork 0
Add task model
Serhii Horodilov edited this page Feb 20, 2024
·
6 revisions
At the end of this guide you will:
- create a Django model to represent tasks
- create and apply migrations to the project database
git checkout bp-models-taskserDiagram
task {
UUID uuid "primary key"
string summary
string description
bool completed
datetime created_at
datetime updated_at
bigint reporter "foreign key"
bigint assignee "foreign key"
}
- Set up new Django project
- Add project views
- Configure PostgreSQL database
- Add task model
- Fetch data from the database to response
- Render HTML templates to response
- Create auth forms
- Implement user authentication
- Create custom user model
- Create task model form
- Apply permissions to views
- Refactoring project views to CBVs
- Create serializers
- Implement API views
- Apply API views permissions