ansible/roles/mailman3/files/urls.py
Michal Konecny f919603485 [mailman3] Add our own urls file
The current deployment doesn't look to work correctly for redirects, this should
fix it.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-03-27 14:42:13 +01:00

16 lines
555 B
Python

# -*- coding: utf-8 -*-
from django.contrib import admin
from django.urls import include, re_path, reverse_lazy
from django.views.generic import RedirectView
urlpatterns = [
re_path(r'^$', RedirectView.as_view(
url=reverse_lazy('list_index'),
permanent=True)),
re_path(r'^admin/', include('postorius.urls')),
re_path(r'^archives/', include('hyperkitty.urls')),
re_path(r'', include('django_mailman3.urls')),
re_path(r'^accounts/', include('allauth.urls')),
re_path(r'^django-admin/', include(admin.site.urls)),
]