Django-nonrel cannot log in as root

I made such commands

python manage.py createsuperuser 

If I do python manage.py runserver

In this case, I can log in and I see the user I created.

If I use the GAE SDK to start the server, I cannot log in. Why?

+1
source share
3 answers

This could be a problem:

You have a database installed for a regular django project.
Thus, manage.py createsuperuser will create a superuser in this database.

In the case of GAE SKD, it uses the GAE Datastore , so the superuser you created is not there.

This is what you could do:

  • Create a normal user
  • Go to /_ah/admin/ and change the data for the user table in the data store by changing the desired is_superuser user field to True .
+2
source

On the djangoappengine page:

Important: Do not use dev_appserver.py directly. This will not work as expected since run.exe manage.py uses the configured dev_appserver.py configuration

+1
source

aardvax posted a great link. But in case no one enters it. The answer is to create users remotely

superuser creation:

 manage.py remote createsuperuser 

using remote shell (for using User api):

 manage.py remote shell 

Hope this helps.

0
source

All Articles