Re:Django-registration 1.0 is out
by arocks on Monday June 17, 2013 @09:05AM
(#5892884)
This has been a long awaited update for django-registration to make it compatible with Django 1.5's user model. To give some context, several people submitted pull requests over the last few months which were continually rejected. Glad to see this canonical Django package getting finally updated.
Note: The documentation[1] still describes 0.9 version.
Re:Django-registration 1.0 is out
by nobodyshere on Monday June 17, 2013 @09:46AM
(#5893070)
Yep, for some reason they decided it would be ok to delay release and deny pull requests for so much time that many people (myself included) simply wrote their own implementations.
Re:Django-registration 1.0 is out
by truebosko on Monday June 17, 2013 @01:22PM
(#5894473)
Am I missing something, or is there a reason that the Django 1.5 implementation didn't stretch into other parts of the project, like the built-in RegistrationForm? It still uses the old User model directly.
Re:Django-registration 1.0 is out
by yourcelf on Monday June 17, 2013 @09:38AM
(#5893027)
Here's a set of default templates I wrote. I respect the reasoning for not providing them, but implementing 15 templates to get started out of the box is a bit onerous.
https://github.com/yourcelf/django-registration-defaults
Re:Django-registration 1.0 is out
by huxley on Monday June 17, 2013 @09:00AM
(#5892865)
The main developer James Bennett has discussed his reasons several times on multiple venues, but the FAQ in the Read the Docs for django-registration gives details in "Does django-registration come with any sample templates I can use right away?"
Re:Django-registration 1.0 is out
by sammy_rulez on Monday June 17, 2013 @10:08AM
(#5893199)
Yes.. I have read the faq but
1 "Providing default templates with an application is generally hard to impossible" not true since the introducton of app template loader
2 "A number of things in django-registration depend on the specific registration backend" 99 % uses standard db/user built in backend. If you use social-auth or similar you (almost ) do not need registration
I second 'yourcelf' comment below.. I always use his template as a starting point.
May be a management commas that generate those default templates? ( not a big fan of template generation anyway)
Re:Django-registration 1.0 is out
by bmelton on Monday June 17, 2013 @09:13AM
(#5892928)
I've used Django Registration on at least 5 projects, and despite having built a good set of templates with the first project, haven't ever been able to reuse them completely.
Registration is (or at least, probably ought to be) a very personal set of decisions for any app/project. I agree that there could be some easily packaged, cookie-cutter defaults, but having experienced all the reasons James Bennett cited for not packaging any templates, I have to say that he's not crazy for their omission.
Re:Django-registration 1.0 is out
by ineedtosleep on Monday June 17, 2013 @01:19PM
(#5894461)
From my quick stint with django-userena, it felt very constrained. At that time, my application's login requirements were simple, but needed a few minor tweaks. It's been a while, but I recall that doing so didn't seem like an easy task, so I switched to django-registration then eventually using the Django 1.5 custom user model.
Overall, I'd say do a quick run through of both. If one of them has exactly what you need, stick with it. Otherwise, you are probably better off using the default User model or extending the default.
Note: The documentation[1] still describes 0.9 version.
[1]: https://django-registration.readthedocs.org/en/latest/
https://bitbucket.org/ubernostrum/django-registration/src/8f...
https://django-registration.readthedocs.org/en/latest/faq.ht...
Other people have provided good baselines to work from, the Djen of Django provides explanations with their samples:
http://agiliq.com/books/djenofdjango/chapter5.html#reusable-...
(note I haven't upgraded to 1.0 so not sure if there are any incompatibilities)
1 "Providing default templates with an application is generally hard to impossible" not true since the introducton of app template loader
2 "A number of things in django-registration depend on the specific registration backend" 99 % uses standard db/user built in backend. If you use social-auth or similar you (almost ) do not need registration
I second 'yourcelf' comment below.. I always use his template as a starting point.
May be a management commas that generate those default templates? ( not a big fan of template generation anyway)
Registration is (or at least, probably ought to be) a very personal set of decisions for any app/project. I agree that there could be some easily packaged, cookie-cutter defaults, but having experienced all the reasons James Bennett cited for not packaging any templates, I have to say that he's not crazy for their omission.
Overall, I'd say do a quick run through of both. If one of them has exactly what you need, stick with it. Otherwise, you are probably better off using the default User model or extending the default.