Posts tagged orm
Custom Sequential Number Django Model Field
- 01 October 2023
Sometimes we need certain functionality again, and again, and again,… Sometimes it just makes sense to encapsulate certain logic into a separate module so it is easier to test and maintan. For example, we might need Django model field that is capable of keeping seqential number of the items in the order they are stored in the database.
Register Django Model in Admin
- 11 September 2023
There are multiple methods to register a model in Django admin. I will show you how to register a single model (one by one for multiple), all the models in an application and all the models in the project.
Generate Database Diagram from Django Models
- 09 September 2023
Database diagram are very useful project documentation. They might be useful for understanding the project. With projects under development, documentation, diagrams are not exception, easily gets out of sync with actual implementation. Generating documentation from code helps to keep the documentation always up to date with the current code.
Django REST Framework Cookbook
- 09 September 2023
This cookbook looks into working with APIs built on Django using Django REST Framework.