Future Topics¶
Testing Models¶
Test User Model
Test Post Model
Test Comment Model
Test Tag Model
Blog REST APIs¶
See: https://github.com/vancun/django-4-for-apis-blog-katas/blob/main/docs/kata-rest-apis.md
Create serializers for the models
Create viewsets for the models
Define URL routes for the
postsaplicationInclude the
postsapplication 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
Django data export and import¶
Use
dumpdataandloaddataDjango commands.Use
dumpscriptprovided bydjango-extensionspackage.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¶
Create full page screenshot in Chrome See: https://github.com/vancun/django-4-for-apis-blog-katas/blob/main/docs/kata-swagger-ui.md
Generate file tree - https://realpython.com/directory-tree-generator-python/ also https://www.javatpoint.com/create-a-python-directory-tree-generator - https://stackoverflow.com/a/59109706/6949234 - https://pypi.org/project/directory-tree/