I had same problem
In settings remove SESSION_COOKIE_DOMAIN or set correct domain
понедельник, 6 июня 2011 г., 13:57:11 UTC+3 пользователь Aidan написал:
-- In settings remove SESSION_COOKIE_DOMAIN or set correct domain
понедельник, 6 июня 2011 г., 13:57:11 UTC+3 пользователь Aidan написал:
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?
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/739282ff-e00d-46ca-99dc-8bebdff27f6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment