Future Topics

Testing Models

  1. Test User Model

  2. Test Post Model

  3. Test Comment Model

  4. Test Tag Model

Blog REST APIs

See: https://github.com/vancun/django-4-for-apis-blog-katas/blob/main/docs/kata-rest-apis.md

  1. Create serializers for the models

  2. Create viewsets for the models

  3. Define URL routes for the posts aplication

  4. Include the posts application URL routes into the project routes.

Swagger UI for the Blog API

See: https://github.com/vancun/django-4-for-apis-blog-katas/blob/main/docs/kata-swagger-ui.md

Tags

  1. Assign Tags by Name not ID - See: https://github.com/vancun/django-4-for-apis-blog-katas/blob/main/docs/kata-assign-tags-by-name.md

  2. Auto-create Tags by name

  3. Validate Tag Name - See: https://github.com/vancun/django-4-for-apis-blog-katas/blob/main/docs/kata-assing-only-existing-tags.md

Django data export and import

  • Use dumpdata and loaddata Django commands.

  • Use dumpscript provided by django-extensions package.

  • Use django admin

  • Use REST endpoints

Better instrumentation for development and testing

  • Development mode with extra packages.

  • Testing mode

Celery and Django

Pagination in DRF

  • Disable pagination in DRF, using query parameter

VSCode

  • Configure launch.json

  • Configure pytest

Filters

Model

Default value provider

Pre Commit Hooks

Other Topics

Pre-Commit Hooks