Source code for thaliawebsite.templatetags.baseurl

"""Obtain the base url"""
from django.conf import settings
from django.template import Library

register = Library()


[docs]@register.simple_tag() def baseurl(): """ :return: the BASE_URL defined in the settings """ return settings.BASE_URL