| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 1 | from django.conf import settings # import the settings file |
| 2 | |||||
| 3 | |||||
| 4 | def conf_constants(request): | ||||
| 5 | # return the value you want as a dictionnary. you may add multiple values in there. | ||||
| 6 | return { | ||||
| 7 | 'SITE_NAME': settings.SITE_NAME, | ||||
| 8 | 'SHORT_SITE_NAME': settings.SHORT_SITE_NAME, | ||||
| 9 | 'VERSION': settings.VERSION, | ||||
| 10 | } | ||||