~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlhelp/urls.py

  • Committer: franku
  • Date: 2016-04-18 13:29:23 UTC
  • mto: This revision was merged to the branch mainline in revision 409.
  • Revision ID: somal@arcor.de-20160418132923-bfzkb5mvdr7l8mz4
added migrations to each app

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 *
14
 
 
15
 
urlpatterns = [
16
 
    url(r'^$', index, name='wlhelp_index'),
17
 
 
18
 
    url(r'^(?P<tribe>\w+)/wares/(?P<ware>[^/]+)/$',
19
 
        ware_details, name='wlhelp_ware_details'),
20
 
    url(r'^(?P<tribe>\w+)/buildings/(?P<building>[^/]+)/$',
21
 
        building_details, name='wlhelp_building_details'),
22
 
    url(r'^(?P<tribe>\w+)/workers/(?P<worker>[^/]+)/$',
23
 
        worker_details, name='wlhelp_worker_details'),
24
 
 
25
 
    url(r'^(?P<tribe>\w+)/workers/$', workers, name='wlhelp_workers'),
26
 
    url(r'^(?P<tribe>\w+)/wares/$', wares, name='wlhelp_wares'),
27
 
    url(r'^(?P<tribe>\w+)/buildings/$', buildings, name='wlhelp_buildings'),
28
 
]
 
13
from views import * 
 
14
 
 
15
urlpatterns= patterns('',
 
16
    url(r'^$', index, name="wlhelp_index"),
 
17
 
 
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"),
 
23
 
 
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
)