Django update: install version 1.5.1 with build_externals.py

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Django update: set the DEBUG setting when running tests

Enabling the DEBUG setting is the most straightforward way to prevent Django
from enforcing conditions that should be enforced during production, but not
necessarily under a test environment (such as when running unittests. One
example is the HOSTS_ALLOWED check that was introduced in Django 1.5.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Django update: make doctest work on different Django versions

The original doctest recording was too specific to the output generated
by older versions of Django. Instead, catch the exception that should be
caught, and only if a different exception is generated raise it to
force a unittest error.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Django update: ship with less secure but working configuration

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Django update: work around the deprecation of the admin media template tags

Since we already serve the admin static files via apache, this is just a
matter of using the static URLs.

Signed-off-by: Cleber Rosa <crosa@redhat.com>