summaryrefslogtreecommitdiff
path: root/website/context_processors.py
diff options
context:
space:
mode:
authorprashantsinalkar2019-08-27 12:29:12 +0530
committerprashantsinalkar2019-08-27 12:29:12 +0530
commitb9c709823e26f5b20d3732e1788b871cdd961a03 (patch)
treea9089f56541854b48ddbda733832a153c6d53927 /website/context_processors.py
parent50e8fc0832d81d124abd7606b15502545bf84b23 (diff)
downloadSciPy2019-b9c709823e26f5b20d3732e1788b871cdd961a03.tar.gz
SciPy2019-b9c709823e26f5b20d3732e1788b871cdd961a03.tar.bz2
SciPy2019-b9c709823e26f5b20d3732e1788b871cdd961a03.zip
added intial code for project
Diffstat (limited to 'website/context_processors.py')
-rw-r--r--website/context_processors.py8
1 files changed, 8 insertions, 0 deletions
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}