Oh and: - delete all *.pyc files from your project and restart the development server <-- this is a nice one that often solves mysterious problems that seem to be impossible and drive you insane
Best regards, Martin On Mon, Jun 6, 2011 at 7:13 PM, Martin <[email protected]>wrote: > I faced this a long time ago and it nearly drove me insane. Eventually I > just started a new project from scratch and the problem disappeared. > > Wild guesses: > > > - Open the JavaScript debug toolbar of Google Chrome (CTRL+SHIFT+J), > then reload the site and see if there are any 404 errors (that means your > static / media files are not served correctly) > - Refresh your browers cache, restart the browser and try again > - delete your database and run a fresh syncdb --all > > Best regards, > Martin > > On Mon, Jun 6, 2011 at 6:57 PM, Aidan <[email protected]> wrote: > >> 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 post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

