This an optimization story that should not surprise anyone using the Django ORM. But I thought I’d share because I have numbers now! The origin of this came from a real requirement.
It occurred to me that Django’s ORM could do with a bit of a revamp to make use of recent developments in the Python language.
Like last year, Evennia, the Python MUD creation system, takes part in Hacktoberfest, a yearly event run by Digitalocean in collaboration with GitHub.
Evennia, the Python MUD-server game development kit, is slowly creeping closer to its 0.8 release.
tl;dr; I wrote my own extension to
django-pipeline that uses Zopfli to create
.gz files from static assets collected in Django. Here’s the code.
Here’s the code. It’s quick-n-dirty but it works wonderfully:
import functools import hashlib from django.core.cache import cache
I use this a lot. It has served me very well. The code:
import hashlib import functools
By default, when you hook up a model to Django REST Framework and run a query in JSON format, what you get is a list.
The basic setup
Suppose you have these models:
from django.db import models class Category(models.Model): name = models.
The open source ecosystem is the most valuable part of the software industry today.
From the programming languages to the web frameworks,
the operating system to the cryptography,
all software companies today use open source.
I have had the opportunity to provide mentorship to folks who have organized conferences twice in 2017.
Through this process I have realized the value in this practice,
and I’d like to write this to promote others to do to same for first year conference organizers.
the file was created on my 29th birthday:
Jul 9 2016 read-the-docs-sucession-planning.rst
I had failed.
The last few weeks I have reworked the way Evennia‘s startup procedure works.