The horizon.utils.functions ModuleΒΆ

horizon.utils.functions.add_logout_reason(request, response, reason)[source]
horizon.utils.functions.bytes_to_gigabytes(bytes)[source]
horizon.utils.functions.get_page_size(request, default=20)[source]
horizon.utils.functions.lazy_join(*args, **kw)
horizon.utils.functions.logout_with_message(request, msg)[source]

Send HttpResponseRedirect to LOGOUT_URL.

msg is a message displayed on the login page after the logout, to explain the logout reason.

Previous topic

The horizon.utils.secret_key Module

Next topic

The horizon.utils.memoized Module

This Page