Django authentication in django nonrel by GAE

I am using an unrealistic Django project in a Google engine project that works locally during the development process. I created my own models, and this is normal when they are saved and retrieved in the data warehouse.

I hope to use django.contrib.auth to provide custom functionality. I can use the shell to create users, and they are assigned an identifier. When I create one of my own models that references the user, I have to pass in the user ID, as it is quite plausible otherwise.

However, checking through the gae admin interface, I do not see the User model in the data store for the users I created through the shell. I also cannot track user details from one of my models that references them. Calls to mymodel.user.username do not return anything. I also cannot log in to the admin using the username and password that I set. I can see the saved versions of the models that I made in the gae admin application.

My impression is that users are being created somewhere other than a data warehouse. Is there anything else I need to do to use the contrib.auth standard contributors with django-nonrel and gae?

+3
source share
2

, , - .

Google App Engine. Django-nonrel Django. Django, . run.py runerver, , Django, Django.

+6

.

, "python manage.py remote createuperuser" Google App Engine, , . , , .

0

Source: https://habr.com/ru/post/1749444/


All Articles