Last active
December 15, 2015 23:09
-
-
Save guillaumepiot/5338169 to your computer and use it in GitHub Desktop.
DJANGO - Default context processor for Cotidia CMS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from django.contrib.sites.shortcuts import get_current_site | |
from django.conf import settings | |
def website_settings(request): | |
site = get_current_site(request) | |
data = { | |
'SITE_NAME': site.name, | |
'SITE_DOMAIN': site.domain, | |
'AUTHOR': settings.AUTHOR, | |
'AUTHOR_URL': settings.AUTHOR_URL, | |
'MULTILINGUAL': settings.PREFIX_DEFAULT_LOCALE, | |
} | |
return data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment