Add more URL patterns to Joeni
- Author
- Maarten 'Vngngdn' Vangeneugden
- Date
- Nov. 22, 2017, 6:52 p.m.
- Hash
- c35535e1d10591e4d7f7ddd9102e58355df3ae81
- Parent
- 53066247d90ebba534b0a4da2b14ac8189bc2eec
- Modified files
- administration/urls.py
- agora/urls.py
administration/urls.py ¶
21 additions and 0 deletions.
View changes Hide changes
+ |
1 |
from . import views |
+ |
2 |
from django.utils.translation import ugettext_lazy as _ |
+ |
3 |
|
+ |
4 |
urlpatterns = [] + i18n_patterns( |
+ |
5 |
path('index', views.index, name='administration-index'), |
+ |
6 |
path(_('pre-registration'), views.pre_registration, name='administration-pre-registration'), |
+ |
7 |
path(_('settings'), views.settings, name='administration-settings'), |
+ |
8 |
path(_('curriculum'), views.curriculum, name='administration-curriculum'), |
+ |
9 |
path(_('results'), views.results, name='administration-results'), |
+ |
10 |
path(_('results/<slug:course>'), views.result, name='administration-results'), |
+ |
11 |
path(_('results/<int:student_id>'), views.result, name='administration-results'), |
+ |
12 |
path(_('forms'), views.forms, name='administration-forms'), # In Dutch: "Attesten" |
+ |
13 |
path(_('forms/<str:form>'), views.forms, name='administration-forms'), |
+ |
14 |
path(_('rooms'), views.rooms, name='administration-rooms'), |
+ |
15 |
path(_('rooms/<str:room>'), views.rooms, name='administration-rooms'), |
+ |
16 |
path(_('rooms/reservate'), views.room-reservate, name='administration-room-reservate'), |
+ |
17 |
path(_('roster'), views.roster, name='administration-roster'), |
+ |
18 |
) |
+ |
19 |
|
+ |
20 |
|
+ |
21 |
agora/urls.py ¶
2 additions and 1 deletion.
View changes Hide changes
1 |
1 |
from . import views |
2 |
2 |
from django.utils.translation import ugettext_lazy as _ |
3 |
3 |
|
4 |
4 |
urlpatterns = [] + i18n_patterns( |
5 |
5 |
path(_('main'), views.main, name='agora-main'), |
6 |
- | path(_('group/<str:group>'), views.group, name='agora-group'), |
+ |
6 |
path('index/<int:page>', views.index, name='agora-index'), |
+ |
7 |
path(_('group/<str:group>'), views.group, name='agora-group'), |
7 |
8 |
path(_('page/<str:page>'), views.page, name='agora-page'), |
8 |
9 |
path(_('settings/account'), views.account_settings, name='agora-account-settings'), |
9 |
10 |
path(_('settings/page/<str:page>'), views.page_settings, name='agora-page-settings'), |
10 |
11 |
path(_('settings/group/<str:group>'), views.group_settings, name='agora-group-settings'), |
11 |
12 |
#path(_('settings'), views.settings, name='agora-settings'), # Uncomment if all the other pages are done. This page links to all the other settings pages available to this account. |
12 |
13 |
) |
13 |
14 |