svthalia/concrexit

View on GitHub
website/thaliawebsite/templatetags/baseurl.py

Summary

Maintainability
A
0 mins
Test Coverage
"""Obtain the base url."""
from django.conf import settings
from django.template import Library

register = Library()


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