Posts tagged ‘django’


How to Set Up report-uri.com on Django

Let us see things we could not see before!

In recent years browsers have gained many powers to report back problems they encounter on your site, such as:

Read more...

Better Exception Output in Django’s Test Runner With better-exceptions

The exceptions - They Live!

Today I learned about the better-exceptions pacakage. It makes exception output better, providing more context and colourization on the terminal.

Read more...

How to Override the gunicorn Server Header

A sheepicorn, and I swear it was green.

Update (2021-04-02): This is no longer needed since the release of gunicorn 20.1.0, which no longer sends the version in the `Server` header.

Read more...

Introducing django-version-checks

Be on your guard, like this hairy armadillo...

It can be tricky to ensure all the environments that your project runs on use the same versions of Python, PostgreSQL, and other external dependencies. Often development, CI, and cloud environments have different configuration systems, making them hard to keep in sync. And coordinating between all your team members to upgrade their local environments can be complicated, as upgrade emails or instant messages get forgotten if they are away on holiday, working on other projects, etc. And using the wrong versions of external dependencies can lead to hard-to-debug errors, wasting time to find such a simple fix.

Read more...

Introducing django-linear-migrations

The train stays on the migration tracks...

If you’ve used Django migrations for a while, you may be familiar with this message:

Read more...

Cyber Monday discount for Speed Up Your Django Tests

Back from the first Cyber Monday...

Earlier this week I tweeted about my two part offer on my book Speed Up Your Django Tests for this year’s Cyber Monday.

Read more...

A Django REST API in a Single File

A cat having a small REST

I previously covered writing a Django application in a single file, for both synchronous and asynchronous use cases. This post covers the angle of creating a REST API using Django in a single file.

Read more...

Prevent Unintended Data Modification With django-read-only

So you want write privileges hey?

Last week I released a new Django package, django-read-only. It provides a read-only mode for Django’s database layer.

Read more...

How to Unit Test a Django Management Command

Here comes the test train!

This post is an adapted extract from my book Speed Up Your Django Tests, available now.

Read more...

What happens when you run manage.py test?

A tangle of classes

This is a blog post version of the talk I gave at DjangoCon Australia 2020 today. The video is on YouTube and the slides are on GitHub (including full example code).

Read more...

All tags: