|
1 | 1 | from django.urls import path |
2 | | -from django.views.generic import TemplateView |
3 | 2 |
|
4 | 3 | from . import views |
5 | 4 |
|
6 | 5 | app_name = 'cyphercore' |
7 | 6 | urlpatterns = [ |
8 | 7 | path('', views.index, name='index'), |
9 | | - path('abilities/', views.AbilityListView.as_view(), name='ability_list'), |
10 | | - path('abilities/cards/', views.AbilityCardsView.as_view(), name='ability_cards'), |
11 | | - path('abilities/<slug:slug>/', views.AbilityDetailView.as_view(), name='ability_detail'), |
| 8 | + path( |
| 9 | + 'abilities/', views.AbilityListView.as_view(), |
| 10 | + name='ability_list'), |
| 11 | + path( |
| 12 | + 'abilities/cards/', views.AbilityCardsView.as_view(), |
| 13 | + name='ability_cards'), |
| 14 | + path( |
| 15 | + 'abilities/<slug:slug>/', views.AbilityDetailView.as_view(), |
| 16 | + name='ability_detail'), |
12 | 17 | path('artifacts/', views.ArtifactListView.as_view(), name='artifact_list'), |
13 | | - path('artifacts/cards/', views.ArtifactCardsView.as_view(), name='artifact_cards'), |
14 | | - path('artifacts/<slug:slug>/', views.ArtifactDetailView.as_view(), name='artifact_detail'), |
15 | | - path('characters/', views.CharacterListView.as_view(), name='character_list'), |
16 | | - path('characters/<slug:slug>/', views.CharacterDetailView.as_view(), name='character_detail'), |
17 | | - path('characters/<slug:slug>/summary/', views.CharacterDetailView.as_view(), name='character_detail'), |
18 | | - path('creatures/', views.CreatureListView.as_view(), name='creature_list'), |
19 | | - path('creatures/<slug:slug>/', views.CreatureDetailView.as_view(), name='creature_detail'), |
20 | | - path('cyphers/', views.CypherListView.as_view(), name='cypher_list'), |
21 | | - path('cyphers/cards/', views.CypherCardsView.as_view(), name='cypher_cards'), |
22 | | - path('cyphers/<slug:slug>/', views.CypherDetailView.as_view(), name='cypher_detail'), |
23 | | - path('descriptors/', views.DescriptorListView.as_view(), name='descriptor_list'), |
24 | | - path('descriptors/<slug:slug>/', views.DescriptorDetailView.as_view(), name='descriptor_detail'), |
25 | | - path('equipment/', views.EquipmentListView.as_view(), name='equipment_list'), |
26 | | - path('foci/', views.FocusListView.as_view(), name='focus_list'), |
27 | | - path('foci/<slug:slug>/', views.FocusDetailView.as_view(), name='focus_detail'), |
28 | | - path('skills/', views.SkillListView.as_view(), name='skill_list'), |
29 | | - path('types/', views.TypeListView.as_view(), name='type_list'), |
30 | | - path('types/<slug:slug>/', views.TypeDetailView.as_view(), name='type_detail'), |
| 18 | + path( |
| 19 | + 'artifacts/cards/', views.ArtifactCardsView.as_view(), |
| 20 | + name='artifact_cards'), |
| 21 | + path( |
| 22 | + 'artifacts/<slug:slug>/', views.ArtifactDetailView.as_view(), |
| 23 | + name='artifact_detail'), |
| 24 | + path( |
| 25 | + 'characters/', views.CharacterListView.as_view(), |
| 26 | + name='character_list'), |
| 27 | + path( |
| 28 | + 'characters/<slug:slug>/', |
| 29 | + views.CharacterDetailView.as_view(), name='character_detail'), |
| 30 | + path( |
| 31 | + 'characters/<slug:slug>/summary/', views.CharacterDetailView.as_view(), |
| 32 | + name='character_detail'), |
| 33 | + path( |
| 34 | + 'creatures/', views.CreatureListView.as_view(), |
| 35 | + name='creature_list'), |
| 36 | + path( |
| 37 | + 'creatures/<slug:slug>/', views.CreatureDetailView.as_view(), |
| 38 | + name='creature_detail'), |
| 39 | + path( |
| 40 | + 'cyphers/', views.CypherListView.as_view(), |
| 41 | + name='cypher_list'), |
| 42 | + path( |
| 43 | + 'cyphers/cards/', views.CypherCardsView.as_view(), |
| 44 | + name='cypher_cards'), |
| 45 | + path( |
| 46 | + 'cyphers/<slug:slug>/', views.CypherDetailView.as_view(), |
| 47 | + name='cypher_detail'), |
| 48 | + path( |
| 49 | + 'descriptors/', views.DescriptorListView.as_view(), |
| 50 | + name='descriptor_list'), |
| 51 | + path( |
| 52 | + 'descriptors/<slug:slug>/', views.DescriptorDetailView.as_view(), |
| 53 | + name='descriptor_detail'), |
| 54 | + path( |
| 55 | + 'equipment/', views.EquipmentListView.as_view(), |
| 56 | + name='equipment_list'), |
| 57 | + path( |
| 58 | + 'foci/', views.FocusListView.as_view(), |
| 59 | + name='focus_list'), |
| 60 | + path( |
| 61 | + 'foci/<slug:slug>/', views.FocusDetailView.as_view(), |
| 62 | + name='focus_detail'), |
| 63 | + path( |
| 64 | + 'skills/', views.SkillListView.as_view(), |
| 65 | + name='skill_list'), |
| 66 | + path( |
| 67 | + 'types/', views.TypeListView.as_view(), |
| 68 | + name='type_list'), |
| 69 | + path( |
| 70 | + 'types/<slug:slug>/', views.TypeDetailView.as_view(), |
| 71 | + name='type_detail'), |
31 | 72 | ] |
0 commit comments