I"ve done such commands
python manage.py createsuperuser
If I do python manage.py runserver
In this case I can login, and I can see the user I created.
While if I use GAE's SDK to start the server, I canNOT log in. Why?
I"ve done such commands
python manage.py createsuperuser
If I do python manage.py runserver
In this case I can login, and I can see the user I created.
While if I use GAE's SDK to start the server, I canNOT log in. Why?
This might be the problem:
You have setup a database for a normal django project.
So manage.py createsuperuser will create a superuser in that database.
In case of GAE SKD, it uses the GAE Datastore, so the superuser you created is not present there.
This is what you could do:
/_ah/admin/ and modify the data for user table in datastore, changing the desired users is_superuser field to True.From the djangoappengine page:
Important: Don't use dev_appserver.py directly. This won't work as expected because manage.py runserver uses a customized dev_appserver.py configuration
aardvax posted great link. But in case no one goes into it. The answer is to create users remotely
creating superuser:
manage.py remote createsuperuser
using remote shell (to use User api):
manage.py remote shell
Hope it helps.