我使用 Django 1.5 + django-registration 0.9 ...
如何使模型用户中的电子邮件字段唯一?
from registration.forms import RegistrationFormUniqueEmail
url(r'^accounts/register/$', 'registration.views.register',
{'form_class': RegistrationFormUniqueEmail,
'backend': 'registration.backends.default.DefaultBackend'},
name='registration_register'),
此解决方案不适合
Could not import registration.views.register. View does not exist in module registration.views.