class documentation

Undocumented

Method clear_cache Clear the ``Site`` object cache.
Method get_by_natural_key Undocumented
Method get_current Return the current Site based on the SITE_ID in the project's settings. If SITE_ID isn't defined, return the site with domain matching request.get_host(). The ``Site`` object is cached the first time it's retrieved from the database.
Class Variable use_in_migrations Undocumented
Method _get_site_by_id Undocumented
Method _get_site_by_request Undocumented
def clear_cache(self): (source)

Clear the ``Site`` object cache.

def get_by_natural_key(self, domain): (source)

Undocumented

def get_current(self, request=None): (source)

Return the current Site based on the SITE_ID in the project's settings. If SITE_ID isn't defined, return the site with domain matching request.get_host(). The ``Site`` object is cached the first time it's retrieved from the database.

use_in_migrations: bool = (source)

Undocumented

def _get_site_by_id(self, site_id): (source)

Undocumented

def _get_site_by_request(self, request): (source)

Undocumented