|
1 | | -from django.conf.urls import url |
| 1 | +from django.urls import re_path |
2 | 2 |
|
3 | 3 | from ocfweb.account.chpass import change_password |
4 | 4 | from ocfweb.account.commands import commands |
|
17 | 17 |
|
18 | 18 |
|
19 | 19 | urlpatterns = [ |
20 | | - url(r'^password/$', change_password, name='change_password'), |
21 | | - url(r'^commands/$', commands, name='commands'), |
| 20 | + re_path(r'^password/$', change_password, name='change_password'), |
| 21 | + re_path(r'^commands/$', commands, name='commands'), |
22 | 22 |
|
23 | 23 | # account creation |
24 | | - url(r'^register/$', request_account, name='register'), |
25 | | - url(r'^register/wait/$', wait_for_account, name='wait_for_account'), |
26 | | - url(r'^register/created/$', account_created, name='account_created'), |
27 | | - url(r'^register/pending/$', account_pending, name='account_pending'), |
28 | | - url(r'^register/recommend/$', recommend, name='recommend'), |
29 | | - url(r'^register/validate/$', validate, name='validate'), |
| 24 | + re_path(r'^register/$', request_account, name='register'), |
| 25 | + re_path(r'^register/wait/$', wait_for_account, name='wait_for_account'), |
| 26 | + re_path(r'^register/created/$', account_created, name='account_created'), |
| 27 | + re_path(r'^register/pending/$', account_pending, name='account_pending'), |
| 28 | + re_path(r'^register/recommend/$', recommend, name='recommend'), |
| 29 | + re_path(r'^register/validate/$', validate, name='validate'), |
30 | 30 |
|
31 | 31 | # request vhost |
32 | | - url(r'^vhost/$', request_vhost, name='request_vhost'), |
33 | | - url(r'^vhost/success/$', request_vhost_success, name='request_vhost_success'), |
| 32 | + re_path(r'^vhost/$', request_vhost, name='request_vhost'), |
| 33 | + re_path(r'^vhost/success/$', request_vhost_success, name='request_vhost_success'), |
34 | 34 |
|
35 | 35 | # mail vhost management |
36 | | - url(r'^vhost/mail/$', vhost_mail, name='vhost_mail'), |
37 | | - url(r'^vhost/mail/update/$', vhost_mail_update, name='vhost_mail_update'), |
38 | | - url(r'vhost/mail/import/([0-9a-zA-Z-.]+)/$', vhost_mail_csv_import, name='vhost_mail_csv_import'), |
39 | | - url(r'vhost/mail/export/([0-9a-zA-Z-.]+)/$', vhost_mail_csv_export, name='vhost_mail_csv_export'), |
| 36 | + re_path(r'^vhost/mail/$', vhost_mail, name='vhost_mail'), |
| 37 | + re_path(r'^vhost/mail/update/$', vhost_mail_update, name='vhost_mail_update'), |
| 38 | + re_path(r'vhost/mail/import/([0-9a-zA-Z-.]+)/$', vhost_mail_csv_import, name='vhost_mail_csv_import'), |
| 39 | + re_path(r'vhost/mail/export/([0-9a-zA-Z-.]+)/$', vhost_mail_csv_export, name='vhost_mail_csv_export'), |
40 | 40 | ] |
0 commit comments