Can't login to Django /admin interface


First of all, I am a newbie. I'm running Ubuntu 11.04 which comes with Python 2.7 so I installed Python2.5 in different dir to run Django-Non-Rel on Google App Engine. I did the Guestbook tutorial and now I am trying to add admin access but when I type in correct username:password Django thinks its incorrect. It doesn't even work when deployed to GAE. If you know please poke me in the right direction.

I added:



I also added

url(r'^admin/', include(,

to in subproject directory.

Then I created superuser and synced databases:

> python2.5 xxx-xxx-guestbook/ createsuperuser python2.5
> xxx-xxx-guestbook/ syncdb

Then ran the app and can't login. I created multiple different supersusers always with the same result.


Thanks everyone for trying to help but unfortunately neither of the offered solutions fixed the problem. I have decided to first learn Django on its own and then maybe switch to GAE Django-nonrel, so the question is not relevant anymore. Should I still pick one answer to give someone some points?

7/23/2011 4:25:55 AM

Accepted Answer

Not too sure on this, but syncdb might remove the superuser you just created. Try creating a superuser when syncdb prompts you to.

Otherwise, take a look at the user model in ./ shell. Check User.objects.all()[0].is_superuser.

7/3/2013 9:32:35 PM

There is some kind of limitation in django-nonrel.

To create a superuser:

  • Stop the local webserver
  • Create the superuser

    python createsuperuser
  • Run the webserver again

    python runserver

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow