What's new in Django community blogs?

Optimizing Django ORM Queries

May 3, 2020 » django on roschegel » [Archived Version]

The Django ORM (Object Relational Mapping) is one of the most powerful features of Django. It enables us to interact with the database using Python code instead of SQL. It has multiple advantages: The database engine is abstracted from us, so it is possible to switch to another database system with ease. It supports migrations: we can easily change our tables by updating our models and Django will automatically generate the migration scripts needed to update the database tables. It supports tr…

Read More

Practices of the Python Pro - Dane Hillard

April 29, 2020 » Django Chat » [Archived Version]

Dane is the author of a new book, Practices of the Python Pro. We discuss using Django at scale, pytest, and teaching beginners.

Read More

Working with request.data in Django REST framework

April 28, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]

Django REST generic views are amazing, but working with request.data in Django REST framework can be tricky ...

Read More

JustDjango - Matthew Freire

April 15, 2020 » Django Chat » [Archived Version]

JustDjango is a popular YouTube channel and website dedicated to Django learning resources. We discuss how Matthew learned Django, building the website itself, payments, mentors, and more.

Read More

How to handle multiple sites (virtual hosts) in Django

April 10, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]

It's common to have a single Django project serving requests for multiple domains. Learn how to route each request to the right app.

Read More

Translations - Andrew Knight

April 8, 2020 » Django Chat » [Archived Version]

Django has a powerful built-in translations framework that we discuss with Andrew Knight. Topics include internationalization vs localization, common gotchas, Django’s internal translations team, and more.

Read More

Episode 4 - Building User Interfaces

April 8, 2020 » Django on Matt Layman » [Archived Version]

On this episode, we look at templates, the primary tool that Django provides to build user interfaces in your Django app. Listen at djangoriffs.com. Last Episode On the previous episode, we talked about views and how views handle requests to create HTTP responses for users. Set Up Templates are static files that Django will fill in with data. In order to use those files, we must instruct Django on where to find them.

Read More

How to Provide Test Fixtures for Django Models in Pytest

April 7, 2020 » Haki Benita » [Archived Version]

One of the most challenging aspects of writing good tests is maintaining test fixtures. Good test fixtures motivate developers to write better tests, and bad fixtures can cripple a system to a point where developers fear and avoid them all together. The article covers everything from setting up Pytest for a Django project, creating test fixtures and how to create dependency between fixtures.

Read More

How to create a Django project and a Django application

April 4, 2020 » Valentino Gagliardi - Django RSS Feed » [Archived Version]

Learn how to create a Django project and a Django application in this quick-start tutorial.

Read More

Django JSON logging

April 4, 2020 » Thomas Loiret - Random thoughts » [Archived Version]

Use python-json-logger package to output JSON log with Django

Read More