ansible/roles/mailman3/files/urls.py
Michal Konecny 143243ef45 [mailman3] Fix the urls.py error
This is fixing the error `django.core.exceptions.ImproperlyConfigured: Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.`

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

16 lines
546 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/', admin.site.urls),
]