As of Django 1.5, you can set LOGIN_URL to a view function name, but I haven't been able to figure out how to specify it correctly.
LOGIN_URL = my_app.views.sign_in
...does not work. I get the error,
ImproperlyConfigured: The SECRET_KEY setting must not be empty.