Bartosz Stebel | f5b1a21 | 2023-02-04 23:47:44 +0100 | [diff] [blame] | 1 | # -*- coding: utf-8 -*- |
| 2 | # Copyright (C) 1998-2016 by the Free Software Foundation, Inc. |
| 3 | # |
| 4 | # This file is part of Postorius. |
| 5 | # |
| 6 | # Postorius is free software: you can redistribute it and/or modify it under |
| 7 | # the terms of the GNU General Public License as published by the Free |
| 8 | # Software Foundation, either version 3 of the License, or (at your option) |
| 9 | # any later version. |
| 10 | # |
| 11 | # Postorius is distributed in the hope that it will be useful, but WITHOUT |
| 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 14 | # more details. |
| 15 | # |
| 16 | # You should have received a copy of the GNU General Public License along with |
| 17 | # Postorius. If not, see <http://www.gnu.org/licenses/>. |
| 18 | |
| 19 | |
| 20 | from django.conf.urls import include |
| 21 | from django.contrib import admin |
| 22 | from django.urls import path, reverse_lazy |
| 23 | from django.views.generic import RedirectView |
| 24 | |
| 25 | urlpatterns = [ |
| 26 | path( |
| 27 | '', |
| 28 | RedirectView.as_view(url=reverse_lazy('list_index'), permanent=True), |
| 29 | ), |
| 30 | path('mailman3/', include('postorius.urls')), |
| 31 | path('archives/', include('hyperkitty.urls')), |
| 32 | path('', include('django_mailman3.urls')), |
| 33 | path('accounts/', include('allauth.urls')), |
| 34 | path('admin/', admin.site.urls), |
| 35 | ] |