django-nonrel google app引擎无法登录管理面板 [英] django-nonrel google app engine fail to log in admin panel

查看:144
本文介绍了django-nonrel google app引擎无法登录管理面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在gae上创建了一个django-nonrel应用程序。用is_active,is_staff,is_suiperuser全部添加了一个用户(django.auth.models.User)。在localhost上登录成功,但部署后我无法登录GAE(我也在GAE上创建了同一个用户,并且可以在数据存储区视图中查看)。



但是当我尝试登录http://.appspot.com/admin/它返回请输入正确的用户名和密码。

解决方案<尼克和埃利奥特是对的。你必须使用manage.py remote creationuperuser


I've created a django-nonrel app on gae. Added a user (django.auth.models.User) with is_active, is_staff, is_suiperuser all True. On localhost I login successfully, but I fail to login on GAE after deploy (I've created the same user on GAE too and it can be seen on datastore view).

But when I try to login on http://.appspot.com/admin/ it returns "Please enter a correct username and password."

解决方案

Nick and Elliot are right. You have to use manage.py remote createsuperuser

这篇关于django-nonrel google app引擎无法登录管理面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆