我正在尝试在 django-registration 0.8 中使用“简单”后端,但是当我转到 /accounts/register (以及在/注册)
我的代码如下。
from django.conf.urls import patterns, include, url
from registration.views import register
urlpatterns = patterns('',
url(r'^$', 'app.views.home'),
url(r'/accounts', include('registration.backends.simple.urls')),
url(r'register', 'registration.views.register', {'success_url':''}),
)