0
votes

I am new in django. I am trying to create a user specific page where after login the user land to somthing like mydomain.com/dashboard/. I am trying to implement the following solution Django - after login, redirect user to his custom page --> mysite.com/username Can anyone provide more detail like how to create models , call back , views and login page thanks

1
Here is you answer its been asked by another person too stackoverflow.com/questions/44492856/…I AM A Hacker
you are asking your homework, your question is too broad, pls edit itMauricio Cortazar

1 Answers

1
votes

User @login-required on every view that is user specific in views.py

Create a myapp/templates/registration/login.html

Setup urls.py in main to point to index in myapp.

Any attempt to access a page will redirect to login. After authenticated redirect to index.html

Django has a built in users model. You can use your superuser that you access admin dashboard with.