python Django-注册,模板

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1959511/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 23:26:32  来源:igfitidea点击:

Django-registration, template

pythondjango

提问by Driego

where can I find good templates for django-registration? I've found one, but the activation isn't work properly - when user click on activation link he gets:

我在哪里可以找到好的 django-registration 模板?我找到了一个,但激活无法正常工作 - 当用户点击激活链接时,他得到:

Hello ! Check your e-mail to confirm registration. 7 days left.

你好 !检查您的电子邮件以确认注册。还剩7天。

Instead of ~"Activation succesfull/fail".

而不是〜“激活成功/失败”。

回答by miku

Some templates can be found here: http://devdoodles.wordpress.com/2009/02/16/user-authentication-with-django-registration/

一些模板可以在这里找到:http: //devdoodles.wordpress.com/2009/02/16/user-authentication-with-django-registration/

$ tree
.
|-- [            981]  base.html
|-- [             89]  index.html
`-- [            544]  registration
    |-- [            287]  activate.html
    |-- [            221]  activation_email.txt
    |-- [             67]  activation_email_subject.txt
    |-- [            459]  login.html
    |-- [            110]  logout.html
    |-- [            116]  password_change_done.html
    |-- [            192]  password_change_form.html
    |-- [            193]  password_reset_complete.html
    |-- [            283]  password_reset_confirm.html
    |-- [            153]  password_reset_done.html
    |-- [            215]  password_reset_email.html
    |-- [            192]  password_reset_form.html
    |-- [            146]  registration_complete.html
    `-- [            192]  registration_form.html

回答by Dave Forgac

I found the templates here to be a good starting point:

我发现这里的模板是一个很好的起点:

https://github.com/yourcelf/django-registration-defaults

https://github.com/yourcelf/django-registration-defaults

(Note that you need to a base.html for them to include)

(请注意,您需要一个 base.html 才能包含它们)

回答by Naveen

the djen of django bookhas some templates for django-registration with some explanations.

django 书的 djen有一些 django-registration 模板和一些解释。

回答by Mudassar Hashmi

Make sure you are using the latest version of Django-registration-redux. Current version is 1.4. Also go to thislink and download django-registration app manually. After its downloaded just drag drop your templates from templates/registration to your templates/registration. Check again an post the situation after these steps.

确保您使用的是最新版本的 Django-registration-redux。当前版本是 1.4。也请转到链接并手动下载 django-registration 应用程序。下载后,只需将您的模板从模板/注册拖放到您的模板/注册。完成这些步骤后再次检查帖子的情况。