~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlhelp/urls.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#
11
11
 
12
12
from django.conf.urls import *
13
 
from views import * 
 
13
from views import *
14
14
 
15
15
urlpatterns = [
16
 
    url(r'^$', index, name="wlhelp_index"),
 
16
    url(r'^$', index, name='wlhelp_index'),
17
17
 
18
18
    # Detail pages
19
 
    url(r'^(?P<tribe>\w+)/$', tribe_details, name="wlhelp_tribe_details"),
20
 
    url(r'^(?P<tribe>\w+)/wares/(?P<ware>[^/]+)/$', ware_details, name="wlhelp_ware_details"),
21
 
    url(r'^(?P<tribe>\w+)/buildings/(?P<building>[^/]+)/$', building_details, name="wlhelp_building_details"),
22
 
    url(r'^(?P<tribe>\w+)/workers/(?P<worker>[^/]+)/$', worker_details, name="wlhelp_worker_details"),
 
19
    url(r'^(?P<tribe>\w+)/$', tribe_details, name='wlhelp_tribe_details'),
 
20
    url(r'^(?P<tribe>\w+)/wares/(?P<ware>[^/]+)/$',
 
21
        ware_details, name='wlhelp_ware_details'),
 
22
    url(r'^(?P<tribe>\w+)/buildings/(?P<building>[^/]+)/$',
 
23
        building_details, name='wlhelp_building_details'),
 
24
    url(r'^(?P<tribe>\w+)/workers/(?P<worker>[^/]+)/$',
 
25
        worker_details, name='wlhelp_worker_details'),
23
26
 
24
 
    url(r'^(?P<tribe>\w+)/workers/$', workers, name="wlhelp_workers"),
25
 
    url(r'^(?P<tribe>\w+)/wares/$', wares, name="wlhelp_wares"),
26
 
    url(r'^(?P<tribe>\w+)/buildings/$', buildings, name="wlhelp_buildings"),
 
27
    url(r'^(?P<tribe>\w+)/workers/$', workers, name='wlhelp_workers'),
 
28
    url(r'^(?P<tribe>\w+)/wares/$', wares, name='wlhelp_wares'),
 
29
    url(r'^(?P<tribe>\w+)/buildings/$', buildings, name='wlhelp_buildings'),
27
30
]