Django 邀请申请
我想创建一个网站,人们需要电子邮件邀请才能订阅,而我是唯一允许邀请人们的人。 我认为 邀请申请 就是我所需要的。正确吗?实施起来容易吗?欢迎任何提示。
对于 django-registration 和 django-invitation 的安装,我读过我可以将解压缩的文件放在我的 django 路径中。正确吗?或者我应该使用简易安装?
非常感谢。
I want to create a site where people would need an e-mail invitation to subscribe and where I would be the only one allowed to invite people.
I think the invitation application is what I need. Is it correct ? Is it easy to implement ? Any hint is welcome.
For the installation of django-registration and django-invitation, I have read I could just put the unzipped files in my django path. Is it correct ? Or should I use easy install ?
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,您应该能够将任何应用程序/模块放入 django 文件夹中并且它应该可以工作。
然而,有一些事情不容忽视。
确保您不要忘记按照每个特定应用程序的说明编辑 settings.py 和 urls.py
请检查是否存在任何依赖项。某些应用程序可能需要安装某些库,例如映像等。
某些应用程序的流程更复杂,需要额外的设置、文件和调整。
专门用于 Django 注册 settings.py 中的 2 行:
)
ACCOUNT_ACTIVATION_DAYS = 7 # 还有这一行! #一周激活窗口;当然,您可以使用不同的值。
以及 urls.py 中:
至于邀请,几乎相同:
https://bitbucket.org/david/django-invitation/wiki/Home#basic-use
祝你好运
Generally, you should be able to put any app/modul in the django folder and it should work.
However, there are a few things that need not be overlooked.
Make sure you don't overlook to edit the settings.py and the urls.py as instructed for each specific app
Do check if there are any dependencies. Some apps may require certain libraries that need to be installed such as imaging etc.
Some apps have more complicated process and need additional settings, files, and adjustments.
Specifically for Django registration 2 lines in settings.py:
)
ACCOUNT_ACTIVATION_DAYS = 7 # And this line! #One-week activation window; you may, of course, use a different value.
as well as in urls.py:
as for the invitation, its almost the same:
https://bitbucket.org/david/django-invitation/wiki/Home#basic-use
Good luck