-
posts
-
Running django with daemontools
Running django fastcgi with daemontools is rather easy but getting it to run in the foreground with the proper user takes a bit of knowledge about how bash works and the tools in daemontools.
In order to run the fastcgi daemon in the foreground y...
-
Testing HTTPS with Django's Development Server
Django’s development server doesn’t normally support HTTPS so it’s hard
to test applications with HTTPS without deploying the application to a
real web server that supports HTTPS. The secret is to use two
development server instances, one for http...
-
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...
-
Parsing email with attachments in python
Recently I needed to be able to parse out attachments and body from
multipart emails and use the resulting data to post to a service. So I
wrote the code below to parse out text and html portions of the email
and also parse out attachments.
The c...
-
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...
-
Google App Engine SDK 1.2.3
The Google App Engine
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
App Engine but here are some...
-
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...
-
Transactions on App Engine
The way to store data on App Engine is with
Google’s Datastore
which has support for transactions. However, the transactions are quite limited
in that,
You can only execute callables inside transactions. Which means you
basically call run...
-
Werkzeug and reverse urls
I wanted to impove a Google App Engine
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 generatin...