forked from pythonprobr/pythonpro-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodule_urls.py
More file actions
14 lines (12 loc) · 719 Bytes
/
module_urls.py
File metadata and controls
14 lines (12 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from django.urls import path
from . import modules_views, sections_views, topics_views, chapters_views
app_name = 'modules'
urlpatterns = [
path('', modules_views.index, name='index'),
path('<slug:slug>/', modules_views.detail, name='detail'),
path('enrol/<slug:slug>/', modules_views.enrol, name='enrol'),
path('<slug:module_slug>/topicos/<slug:topic_slug>', topics_views.detail, name='topic_detail'),
path('<slug:module_slug>/secoes/<slug:section_slug>', sections_views.detail, name='section_detail'),
path('<slug:module_slug>/capitulos/<slug:chapter_slug>', chapters_views.detail, name='chapter_detail'),
path('descricao/<slug:slug>/', modules_views.description, name='description'),
]