django-registration, registration and login form on index page together, did I do it right?

前端 未结 1 1641
-上瘾入骨i
-上瘾入骨i 2021-01-07 07:25

I\'d appreciate some code review, I used django-registration app and django.contrib.auth module. What I wanted to do is have both the login and registration form on the inde

相关标签:
1条回答
  • 2021-01-07 08:26

    It's quite natural to place login or registration form at index page (or on every page), but why do you need to process the forms there? Process login on /auth/login/, process registration on /auth/registration/ and your code will be clean and extendable.

    0 讨论(0)
提交回复
热议问题