views.generic.base.RedirectView.permanent

permanent

Whether the redirect should be permanent. The only difference here is the HTTP status code returned. If True, then the redirect will use status code 301. If False, then the redirect will use status code 302. By default, permanent is False.

Changed in Django 1.9:

The default value of the permanent attribute changed from True to False.

doc_Django
2016-10-09 18:40:48
Comments
Leave a Comment

Please login to continue.