9
app/core/templatetags/settings_value.py
Normal file
9
app/core/templatetags/settings_value.py
Normal file
@ -0,0 +1,9 @@
|
||||
from django import template
|
||||
from django.conf import settings
|
||||
|
||||
register = template.Library()
|
||||
|
||||
@register.simple_tag
|
||||
def settings_value(name):
|
||||
|
||||
return getattr(settings, name, "")
|
Reference in New Issue
Block a user