All articles tagged Django

Thumbnail image for Ginger Tech Stack

Ginger Tech Stack

For our latest product, Ginger, we wanted to marry the real-time functionality we needed with the traditional Django stack we know and love. After some false starts and falling on our faces in the beginning, we ended with a stack …
Thumbnail image for Quick Django Class Based View Decorator

Quick Django Class Based View Decorator

The recommended way to add decorators such as login_required to class based views in Django is a bit verbose. Here’s a little metaclass-producing function you may find handy: def DecoratedDispatchMethod(actual_decorator): """ If you want to decorate the Class-based View with, …
Thumbnail image for Django Caching in the Real World: Part 1

Django Caching in the Real World: Part 1

When you develop a sizable content heavy web site you quickly learn, hopefully not the hard way, that caching is a very important piece of your infrastructure. The database servers are the typical bottleneck in high volume website. Common wisdom …
Thumbnail image for Get your (arcade) game on!

Get your (arcade) game on!

We love the Django community and to show our thanks, we’re throwing a private party Wednesday night for DjangoCon attendees. After dinner (9-11pm), come on down to Ground Kontrol, Portland’s favorite classic arcade. We’ll have an open bar (while supplies …
Thumbnail image for Disabling South Migrations

Disabling South Migrations

It is often handy to disable (either temporarily or permanently) South migrations for an app. “Disable” in this context means preventing an app’s migrations from being executed so that the app is managed via syncdb while in this state. A …
Thumbnail image for Resetting Your South Migrations

Resetting Your South Migrations

Why? A common question from South users is how to reset the migrations back to an initial state. The reasons for doing this are often related to the number of migrations growing steadily over the life of the project. You’ve …
Thumbnail image for Custom Filters in the Django Admin

Custom Filters in the Django Admin

A few weeks ago Django’s team revealed a data leakage bug in the admin application that affects an extremely interesting and undocumented feature. A user that has access to a change_list page of an object in the admin interface can …