url redirect code example
Example 1: redirect urls
ALLOWED_HOSTS = []
LOGIN_URL = 'login'
LOGIN_REDIRECT_URL = 'home'
LOGOUT_REDIRECT_URL = 'home'
Example 2: Which of the following is the correct way to redirect a user to a new page?
<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />
Example 3: redirect url
LOGIN_REDIRECT_URL = 'your_url'