I’ve put myself into somewhat of a pickle. I use django-registration often, and it seems to work for most situations. However, I want to require users to build their profile (eg: demographic information) before they can visit any of the other pages.
This is how I desire the current setup to run:
- visitor fills out registration form –(submit)—>
- user email verification –(link creates active user)—>
- –(redirected to profile view)—>
- user fills out profile form –(submit)–>
- user can now access the rest of the website
Is there a recommended way to do this?
One of the ways of doing it would be to use your own
@profile_requireddecorator rather than the django’s built inlogin_requiredon all your views.Then on each view you want to have a user with profile visit, just: