cookiecutter-django icon indicating copy to clipboard operation
cookiecutter-django copied to clipboard

Make django-allauth a selectable option

Open tamerz opened this issue 4 years ago • 6 comments

Description

It would be great if django-allauth became an option instead of a default.

Rationale

A lot of sites I create are for internal users and don't need all the features that come with django-allauth. It is not trivial removing all the references from it in my projects without breaking something.

tamerz avatar Dec 14 '20 08:12 tamerz

Huge upvote!!

omarsumadi avatar Dec 24 '20 22:12 omarsumadi

Anyone? :D

rustanacexd avatar Jan 24 '21 14:01 rustanacexd

In a month time, there seems to be some interest.

Trying to evaluate how difficult such an option would be to maintain... Doing a quick search in the code, it doesn't seem too difficult, however, I see in base.html that several views are currently provided by allauth:

https://github.com/pydanny/cookiecutter-django/blob/bf2d5370be5334f7037aead9f544aed8d5416cf2/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/templates/base.html#L54-L72

Should the template provide these if allauth is opted-out? If so, I guess we would need to have another account app that we would delete in post gen hook if allauth is opted-in...

browniebroke avatar Jan 24 '21 14:01 browniebroke

Imo if you don't need allauth, then I don't find it necessary for cookiecutter-django to create its own account app to make up for the registration. I think people are simply asking to not have a signup and stuff in the first place. So having the option to remove django-allauth is basically asking cookiecutter django to not have registration integrated with the UI.

Andrew-Chen-Wang avatar Jan 25 '21 16:01 Andrew-Chen-Wang

@Andrew-Chen-Wang I think there is also the scenario where you want to use something else, specially if you are not interested by the social apps, for instance I like to use https://github.com/macropin/django-registration in my Django projects. My 2 cents :)

areski avatar Mar 09 '21 14:03 areski

Hi, is this feature up for consideration? I can start working on it if it is. Thanks!

denny-sam avatar Oct 02 '22 02:10 denny-sam