diff options
Diffstat (limited to 'website/context_processors.py')
-rw-r--r-- | website/context_processors.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/website/context_processors.py b/website/context_processors.py new file mode 100644 index 0000000..8abae49 --- /dev/null +++ b/website/context_processors.py @@ -0,0 +1,7 @@ +from django.conf import settings + +def root_url(request): + """ + Pass your root_url from the settings.py + """ + return {'SITE_URL': settings.ROOT_URL} |