简体   繁体   English

如何创建用户可以使用django进行注册和登录的用户界面

[英]how to create a user interface that a user can signup and login using django

i love gae(google app engine),because it is easy to create a user interface for user login and signup, 我喜欢gae(Google App引擎),因为它很容易为用户登录和注册创建用户界面,

but now , my boss want me to create a site use django , 但是现在,我的老板要我创建一个使用django的网站,

so the first is to create a site that someone can be login , 所以第一个是创建一个有人可以登录的网站,

which is the esaist way to create a user interface ? 这是创建用户界面的esaist方式?

thanks 谢谢

User authentication in Django is fully documented online . Django中的用户身份验证在线完整记录。 The user interface itself is, AFAICT, your problem; 用户界面本身就是AFAICT,是您的问题; I don't know if Django provides one out of the box. 我不知道Django是否提供开箱即用的功能。

Django auth also provide generic views for login/logout etc. You can use build-in templates or expand it. Django auth还提供登录/注销等的通用视图。您可以使用内置模板或展开它。

See in documentation for generic views: django.contrib.auth.views.login, django.contrib.auth.views.logout 请参阅文档中的通用视图:django.contrib.auth.views.login,django.contrib.auth.views.logout

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM