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

support django2.0?

Open laiqun opened this issue 6 years ago • 7 comments

laiqun avatar May 07 '18 13:05 laiqun

Pull requests are welcome 😉

What changes do I need to make for django 2.0 compatibility?

mishbahr avatar May 08 '18 22:05 mishbahr

I tried it on django 2.0,some function are not work well. when I use send mail when register,will cause template error about "users_acitve" cant't be reverse.

The url method may have changed in django 2.0. code about it: url(r'^activate/(?P[0-9A-Za-z_-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', activate, name='users_activate'),

laiqun avatar May 09 '18 06:05 laiqun

User activation logic is not built in .. its custom view for django-users2 So I don't understand why that would break for django 2.0

Please can you post the full traceback?

mishbahr avatar May 09 '18 09:05 mishbahr

ok,I will reivew the code ; alreay pull request

laiqun avatar May 11 '18 13:05 laiqun

Thanks for the package sir, i must say it's very helpful, but am having similar issue with my, the url is url(r'^activate/(?P[0-9A-Za-z_-]+)/(?P[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', activate, name='users_activate'), . With this in the html {{ protocol }}://{{ site.domain }}{% url 'users_activate' uid token %} am using django2.1 . I have not gone into production. So please sir how can i write the email activation view. if you can just write it here, let me copy and edit it i will be very greatful.

programmerizak avatar Sep 11 '18 07:09 programmerizak

@ImafidonIsaac hi,you can see my "pull request" on this project. I already fix this bug.

laiqun avatar Sep 13 '18 07:09 laiqun

@ImafidonIsaac If you want to solve this problem ,you can see my new pull request. Thanks

laiqun avatar Sep 25 '18 01:09 laiqun