ansible/roles/mailman/files/mailman3_urls.py
Michal Konecny ad315c5536 [mailman] Fix the post-update.sh script
Fixes for the post-update.sh script for mailman:
* add missing dependencies
* Use correct template type for navbar-brand
* Fix urls.py for postorius
* Add settings_admin.py as it is needed for db migration

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2024-03-15 12:01:44 +01:00

17 lines
547 B
Python

# -*- coding: utf-8 -*-
from django.urls import include, re_path, reverse_lazy
from django.contrib import admin
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),
]