I'm having trouble with the Django Admin. My login page appears ok at
http://127.0.0.1:8000/admin but when I try to login with a valid
username or password the page seems to refresh - it reappears with
text boxes empty. It doesn't display any errors on the page (logging
in with invalid username / password brings up all the red errors you'd
expect).
I'm not sure what's going on here. The console gives me the following:
(cache) C:\PythonProjects\CacheProject\cache>python manage.py
runserver
Validating models...
0 errors found
Django version 1.3, using settings 'cache.settings'
Development server is running at
http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[06/Jun/2011 11:52:09] "GET /admin/ HTTP/1.1" 200 2053
[06/Jun/2011 11:52:17] "POST /admin/ HTTP/1.1" 302 0
[06/Jun/2011 11:52:21] "GET /admin/ HTTP/1.1" 200 2053
settings.py -
#
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
)
#
urls.py -
from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
)
Any ideas?