Return to API Reference.



Decorator to switch an url from http to https.

If a view is accessed through http and this decorator is applied to that view, than it will return a permanent redirect to the secure (https) version of the same view.

The decorator also must check that USERENA_USE_HTTPS is enabled. If disabled, it should not redirect to https because the project doesn’t support it.