Ideas you can put to work

Articles

Explore software, AI, and the systems behind everyday applications.
Practical explanations, examples, and things to try.

1–20 of 22 articles

Newest first

Testing in Django with DRY code and Factory Libraries

Learn how to efficiently run dry tests in Django using DRY principle and factory libraries like factory_boy and model_mommy. Optimize your testing process and ensure the reliability of your code with examples and tips provided in this blog post.

What is an OpenAPI?

The OpenAPI Specification (OAS) defines a standard, language-agnostic interface to HTTP APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection.

Humanize - Django Utils

Django comes with a set of template filters to add a "human touch" to data. It is used to translate numbers and dates into a human readable format.

Django Redirects App

Django comes with an optional redirects application. It lets you store redirects in a database and handles the redirecting for you. It uses the HTTP response status code 301 Moved Permanently by default.

How to Use Django's Flatpages App

A flatpage is an object with a URL, title and content. Use it for one-off, special-case pages, such as “About” or “Privacy Policy” pages, that you want to store in a database but for which you don’t want to develop a custom Django application.

Django Designing Better Models

Models definition is one of the most important parts of your application. Something that makes all the difference is defining the field types properly

Using Environment Variables in Django

Python Decouple is a great library that helps you strictly separate the settings parameters from your source code. The idea is simple: Parameters related to the project, goes straight to the source code. Parameters related to an instance of the project, goes to an environment file.

Model Inheritance in Django

Models inheritance works the same way as normal Python class inheritance works, the only difference is, whether we want the parent models to have their own table in the database or not.