def process_request(self, request): """ fetch Site Theme for the current site and add it to the request object. """ default_theme = None if settings.DEFAULT_SITE_THEME: default_theme = SiteTheme( site=request.site, theme_dir_name=settings.DEFAULT_SITE_THEME) request.site_theme = SiteTheme.get_theme(request.site, default=default_theme)
def process_request(self, request): """ fetch Site Theme for the current site and add it to the request object. """ default_theme = None if settings.DEFAULT_SITE_THEME: default_theme = SiteTheme(site=request.site, theme_dir_name=settings.DEFAULT_SITE_THEME) request.site_theme = SiteTheme.get_theme(request.site, default=default_theme)
def process_request(self, request): """ fetch Site Theme for the current site and add it to the request object. """ request.site_theme = SiteTheme.get_theme(request.site)