From b9c709823e26f5b20d3732e1788b871cdd961a03 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 27 Aug 2019 12:29:12 +0530 Subject: added intial code for project --- website/context_processors.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 website/context_processors.py (limited to 'website/context_processors.py') diff --git a/website/context_processors.py b/website/context_processors.py new file mode 100644 index 0000000..c96b9d2 --- /dev/null +++ b/website/context_processors.py @@ -0,0 +1,8 @@ +from django.conf import settings + + +def root_url(request): + """ + Pass your root_url from the settings.py + """ + return {'SITE_URL': settings.ROOT_URL} -- cgit