summaryrefslogtreecommitdiff
path: root/src/apps/changepw/urls.py
diff options
context:
space:
mode:
authorMarkus Krogh <markus@nordu.net>2017-06-02 13:19:30 +0200
committerMarkus Krogh <markus@nordu.net>2017-06-02 13:19:30 +0200
commit934702f61f1cbdbf001ebb598c22c75efa247645 (patch)
treeb0c6725a8c8a682b421aa35eea9662d7fff31bd6 /src/apps/changepw/urls.py
parent41afbaae97384968df6312cbe570305208b2216e (diff)
Django 1.11 compatible and cleaned up
Diffstat (limited to 'src/apps/changepw/urls.py')
-rw-r--r--src/apps/changepw/urls.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/apps/changepw/urls.py b/src/apps/changepw/urls.py
new file mode 100644
index 0000000..8983950
--- /dev/null
+++ b/src/apps/changepw/urls.py
@@ -0,0 +1,13 @@
+# This also imports the include function
+from django.conf.urls import url
+
+from . import views
+
+urlpatterns = [
+ url(r'^$', views.index, name='index'),
+ url(r'^changepw/(?P<pwtype>[-\w]+)$', views.change_password, name='changepw'),
+ url(r'^changeother$', views.change_other, name='changeother'),
+ url(r'^ideviceconf$', views.ideviceconf, name='ideviceconf'),
+ url(r'^changepublicsshkeys$', views.change_public_ssh_keys, name='changepublicsshkeys'),
+ url(r'^changepublicsshkeys/deletekey/(?P<key_number>\d+)$', views.delete_public_ssh_key, name='deletepublicsshkey'),
+]