How to make django-registration use my customized UserCreationForm and UserChangeForm?

后端 未结 1 1260
走了就别回头了
走了就别回头了 2021-01-16 04:19

I am developing a website using Django 1.4 and django-registration

I would like to allow users to create their user names using arbitrary Unicode charac

相关标签:
1条回答
  • 2021-01-16 04:50

    See http://docs.b-list.org/django-registration/0.8/views.html

    After creating your own registration form you can pass this form to the register view of django-registration. Look for the registration.backends.default.urls module

    url(r'^register/$', register,
         {'backend': 'registration.backends.default.DefaultBackend', 
         'form_class': MyRegistrationForm},
    
    0 讨论(0)
提交回复
热议问题