This documentation covers Djblets 0.9.
You can select a version above or
view the latest documentation.
djblets.siteconfig.managers
-
class
SiteConfigurationManager
[source]
Bases: django.db.models.manager.Manager
A Manager that provides a get_current function for retrieving the
SiteConfiguration for this particular running site.
-
get_current
()[source]
Returns the site configuration on the active site.
-
clear_cache
()[source]
-
check_expired
()[source]
Checks each cached SiteConfiguration to find out if its settings
have expired. This should be called on each request to ensure that
the copy of the settings is up-to-date in case another web server
worker process modifies the settings in the database.