开发者

Can't get django registration to work

开发者 https://www.devze.com 2023-03-19 06:32 出处:网络
i have installed django-registration on django 1.3, I can\'t get it to work. When i hit submit on the accounts/register/ page, it redirects to accounts/registration which isn\'t in the default URL\'s

i have installed django-registration on django 1.3, I can't get it to work.

When i hit submit on the accounts/register/ page, it redirects to accounts/registration which isn't in the default URL's.

I can't seem to pass 开发者_开发知识库my post data to the register function. Help?


Does your urls.py have:

import registration
...
urlpatterns += patterns(
    url(r'^accounts/', include('registration.backends.default.urls')),
)

Do you have all the appropriate templates installed in a template directory?

https://github.com/yourcelf/django-registration-defaults

0

精彩评论

暂无评论...
验证码 换一张
取 消