class documentation

class SiteManager(models.Manager):

View In Hierarchy

Undocumented

Method ​_get​_site​_by​_id Undocumented
Method ​_get​_site​_by​_request Undocumented
Method clear​_cache Clear the Site object cache.
Method get​_by​_natural​_key Undocumented
Method get​_current No summary
Class Variable use​_in​_migrations Undocumented
def _get_site_by_id(self, site_id):

Undocumented

def _get_site_by_request(self, request):

Undocumented

def clear_cache(self):
Clear the Site object cache.
def get_by_natural_key(self, domain):

Undocumented

def get_current(self, request=None):
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 =

Undocumented