Posts tagged orm

Custom Sequential Number Django Model Field

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.

Read more ...


Register Django Model in Admin

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.

Read more ...


Generate Database Diagram from Django Models

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.

Read more ...


Django REST Framework Cookbook

This cookbook looks into working with APIs built on Django using Django REST Framework.

Read more ...


Django ORM Cookbook

With this cookbook we dive into Django ORM.

Read more ...