Add product info to settings file
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from django import template
|
||||
from django.conf import settings
|
||||
|
||||
register = template.Library()
|
||||
|
||||
@@ -17,3 +18,8 @@ def input_class(bound_field):
|
||||
elif field_type(bound_field) != 'PasswordInput':
|
||||
css_class = 'is-valid'
|
||||
return 'form-control {}'.format(css_class)
|
||||
|
||||
|
||||
@register.simple_tag
|
||||
def settings_value(name):
|
||||
return getattr(settings, name, '')
|
||||
|
Reference in New Issue
Block a user