Login or Sign up

Posts

Don't feel like writing a management command or playing with DJANGO_SETTINGS_MODULE? Just copy what is in your manage.py, djangonauts.

just a little django hack

Moving back from the development versions of Django, pre-1.2 and Pinax, pre-0.9. Back to 1.1.1 and 0.7.1 respectively.

Not that bad.

Python, does this string have spaces? Tabs, newlines?

Three ways timed with timeit

Django-tagging doesn't require documentation

django-tagging is one of the ultimate reusable django apps.

Remove links that point to the current page with jQuery

Linking back to the same page that you are already on? That's annoying.

ipython shell for debugging

The most useful tip for debugging that I had ever run across.

String format two decimal places in python (money)

Another simple mini tutorial so I don't have to reference this again.

using bpython with django and pinax

bpython is very nice.

Django test client: state, session, login, nice

Simple example of django testing

Subclass django. forms. widgets. RadioFieldRenderer and django. forms. widgets. RadioSelect for custom rendering of individual choices

Fun with django.forms.widgets

Email auth in django, email_re moved again

little bit of back and forth for ye ol' email_re

Use coverage.py to browse the test coverage for your django project

Simple basic directions to use coverage.py to view your test coverage.

Non-threadsafe libs, (geodjango-geos-proj), move from apache2 worker, threaded server, to prefork on ubuntu

so easy to switch from apache2 prefork to worker on ubuntu.

Running postgresql 8.4 on ubuntu karmic koala with postgis 1.4.1, geodjango

This actually works pretty well

git: move master branch to a new name and then checkout a remote branch to be master.

A little information about how to use git to branch so as to contribute to Pinax.

git: remove something from version control but leave it on the filesystem

more in the git fast food series

Speeding up data insertion in CouchDB

From a noobish 2 records per minute to 12 records per second, learning more about CouchDB and applying some tricks like bisection.

Dynamic arguments using dictionaries for Python functions

When you need to match arguments to certain fields, dictionaries are cool for that

In Python, do tuples have methods that lists don't have? Yes, __getnewargs__.

Teaching myself to fish.

Burn an (ubuntu) .iso to compact disk from the command line

simple command from the terminal