-
posts
-
Testing using a mocked HTTP server
Recently I got some tests working for my
django-lifestream
project. The lifestream imports data from RSS/Atom feeds so there isn’t
a good way to run tests without creating a test HTTP server to serve up
your RSS/Atom.
The tests start up an http s...
-
Annoying things about Django
Since I’ve been using it for a while now I’ve gotten a good idea about
what is good and what is annoying about development with django. This
might seem a little trite at parts since some of these gripes are with
features that don’t exist in other ...
-
Custom Admin Views and Reversing Django Admin URLs
I recently used the new feature in Django 1.1 for reversing django
admin
urls
and specifying custom admin
views
in my project
django-lifestream.
django-lifestream has a custom admin
view
which allows users to update the lifestream manually. The c...
-
Django and nginx settings
One problem I keep encountering with setting up fastcgi with Django is
that the default nginx fastcgi parameters cause django to load the top
url no matter what url you try to go to. This is because the default
nginx fastcgi parameters pass the SC...
-
Google Appengine SDK 1.2.3
The Google Appengine
SDK 1.2.3
was just released and contains some often asked for goodies such as
Django 1.0 support and support for a task queue
API.
I haven’t found much information about the Django 1.0 version in
Appengine but here are some l...
-
Preview blog posts within the django admin.
I
implemented
blog post previews for my blog using the technique described here:
http://latherrinserepeat.org/2008/7/28/stupid-simple-django-admin-previews/
It’s very simple as it is simply a view using an existing record. I’d
prefer something th...
-
New Django-based Homepage
I finally got around to finishing up my
Django based website. It’s pretty
inexcusable for a Django developer to have a PHP based blog website. I’m
happy that it seems to be snappier and I haven’t don’t anything
particular to try to make it fast so...
-
Werkzeug and reverse urls
I wanted to impove a Google Appengine application that a friend of mine created (ほぼ汎用イベント管理ツール(jp)) and noticed that he was redirecting directly to urls. He is using Werkzeug to handle url routing so I wondered if there was a method for generating...
-
QueryDict and update()
Yesterday I ran into an interesting quirk with Django's QueryDict object and the normal dictionary update() method. Normally the update method will allow you to merge two dictionary or dictionary like objects but because the QueryDict internally h...
-
Field/column Queries in Django
One of the neat things making it's way into Django 1.1 is F object queries. The F object is kind of like the Q object as it can be used it queries but it represents a database field on the right hand side of an equality/inequality.
For the exampl...