diff options
| author | J08nY | 2017-08-11 20:29:28 +0200 |
|---|---|---|
| committer | J08nY | 2017-08-11 20:29:28 +0200 |
| commit | b6df3c3cdcb4ca25b48cc316502ec39482afe20e (patch) | |
| tree | b52d26b7a08c8aa127ff5ce477ac921dc80e576f /src/django_pgpmailman/urls.py | |
| parent | 7b05d2311f3b1727d9567c21f6d9eaac518ef187 (diff) | |
| download | django-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.tar.gz django-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.tar.zst django-pgpmailman-b6df3c3cdcb4ca25b48cc316502ec39482afe20e.zip | |
Diffstat (limited to 'src/django_pgpmailman/urls.py')
| -rw-r--r-- | src/django_pgpmailman/urls.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/django_pgpmailman/urls.py b/src/django_pgpmailman/urls.py index 0a90cb5..d10fa1c 100644 --- a/src/django_pgpmailman/urls.py +++ b/src/django_pgpmailman/urls.py @@ -17,10 +17,17 @@ # this program. If not, see <http://www.gnu.org/licenses/>. from __future__ import absolute_import, unicode_literals -from django.conf.urls import url +from django.conf.urls import url, include -from django_pgpmailman.views.list import pgp_list_index +from django_pgpmailman.views.list import (pgp_list_index, pgp_list_summary, + pgp_list_pubkey) + +list_patterns = [ + url(r'^$', pgp_list_summary, name='pgp_list_summary'), + url(r'^pubkey$', pgp_list_pubkey, name='pgp_list_pubkey') +] urlpatterns = [ - url(r'^$', pgp_list_index, name='pgp_list_index') + url(r'^$', pgp_list_index, name='pgp_list_index'), + url(r'^lists/(?P<list_id>[^/]+)/', include(list_patterns)) ] |
