Removes hard-coded urls from Django < 1.4.

Plus I added a missing line related to the new customizable user model (but that should also work with 1.4).