Everything you wanted to know
about the Django framework

Класс SuccessURLAllowedHostsMixin (Django 2.0)

from django.contrib.auth.views import SuccessURLAllowedHostsMixin
Диаграмма | Documentation | Исходный код

Потомки

Атрибуты

  Определено в
success_url_allowed_hosts = set() SuccessURLAllowedHostsMixin

Методы

36
37
38
39
def get_success_url_allowed_hosts(self):
    allowed_hosts = {self.request.get_host()}
    allowed_hosts.update(self.success_url_allowed_hosts)
    return allowed_hosts
Auth mixins
Auth views
generic
Generic base
Generic dates
Generic detail
Generic edit
Generic list