By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,793 Members | 1,252 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,793 IT Pros & Developers. It's quick & easy.

Limitations of Django redirect?

P: 7
what are the limitations of Django redirect?
Apr 20 '19 #1
Share this Question
Share on Google+
1 Reply


P: 3
The disadvantages of Django redirect are:

1. Redirect that will not have effect

django.shortcuts.redirect() is easy to implement but the function does not execute a redirect, it only returns a redirect response object. You have to return this response object from view file. Else, no redirect will perform.

2. Issue with permanent redirects

Whenever a browser is receiving a permanent redirect response for the URL, it detects the response. After that, when you request the former URL in the future, the browser will not load the former instead it will directly take you to the new URL.

3. Security loophole in unvalidated redirects

Redirects are generally safe till the time any user input is used like URL parameter without suitable validation as redirect URL. It could lead to a phishing attack through an attacker.

These were some of the limitations of Django redirect.
Apr 20 '19 #2

Post your reply

Sign in to post your reply or Sign up for a free account.