我正在使用来自https://bitbucket.org/ubernostrum/django-registration/的django-registration应用程序,我对于应该放置它的位置感到有点困惑 .
我've added 1304742 under INSTALLED_APPS in settings.py (as instructed), but shouldn'提到的 registration app在我的项目目录中,还有我所有的其他应用程序?这似乎对我来说比在其他地方更有意义(即PYTHONPATH) .
所以,我'm thinking of cloning the repo, just grabbing django-registration' s registration app,放弃了django-registration(INSTALL,README,docs等)中包含的所有其他文件,并将 registration app粘贴在我的项目目录中 .
这样,我可以编辑模型以包含更多字段,在表单中反映出来等 .
这是错的吗?
(对不起,这是我的第一个大型Django项目)
2 回答
通常你不会触摸
django-registration
的文件 - 如果你想为用户 Profiles 添加自己的自定义字段,你可以这样做:Saving profile with registration in Django-Registration
当你安装一个django软件包时,这个软件包在你的PYTHONPATH上,所以你的项目是 see 它 .
所以只需install via pip或easy_install(点子更好),put on settings' INSTALLED_APPS the 'registration' package
关注this instructions