Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created July 1, 2022 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/8342e2a779d84483368823e033d4b601 to your computer and use it in GitHub Desktop.
Save brunomichetti/8342e2a779d84483368823e033d4b601 to your computer and use it in GitHub Desktop.
from django import template
from django.conf import settings
register = template.Library()
@register.simple_tag
def get_settings_var(name):
return getattr(settings, name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment