django: modifying/extending 3rd party apps

前端 未结 3 474
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 01:44

a newbie django question

I want to use 3rd party app, but I need to make some mods to it (in this case, the app is django-registration, and I need to change things s

3条回答
  •  一个人的身影
    2020-12-11 02:27

    I think the neatest way to accomplish what you look for would be to fork django-registration, and in your app use the fork instead of the original project.

    That being said, you can have a non-email registration in django-registration without changing the code of the app. I've done it by creating a custom registration backend that sets the users as activated upon creation. Here you can see other ways to do the same.

提交回复
热议问题