Files
pretix_original/src/pretix/helpers/urls.py
Raphael Michel afd766999c Upgrade to Django 2.1 (#710)
* Upgrade to Django 2.0

* more models

* i18n foo

* Update setup.py

* Fix Sentry exception PRETIXEU-JC

* Enforce slug uniqueness

* Import sorting

* Upgrade to Django 2.1

* Travis config

* Try to fix PostgreSQL failure

* Smaller test matrix

* staticfiles→static

* Include request in all authenticate() calls
2018-08-06 12:48:46 +02:00

9 lines
240 B
Python

from urllib.parse import urljoin
from django.conf import settings
from django.urls import reverse
def build_absolute_uri(urlname, args=None, kwargs=None):
return urljoin(settings.SITE_URL, reverse(urlname, args=args, kwargs=kwargs))