Skip to content

Commit

Permalink
Include context_processors file.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Nov 11, 2020
1 parent 15c1181 commit b7847dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions snippets/base/context_processors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.conf import settings as django_settings


def settings(request):
"""
Adds static-related context variables to the context.
"""
return {'settings': django_settings}

0 comments on commit b7847dd

Please sign in to comment.