~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlhelp/urls.py

  • Committer: Holger Rapp
  • Date: 2009-02-21 18:24:02 UTC
  • Revision ID: sirver@kallisto.local-20090221182402-k3tuf5c4gjwslbjf
Main Page contains now the same informations as before

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python -tt
2
 
# encoding: utf-8
3
 
#
4
 
# File: ../../urls.py
5
 
#
6
 
# Created by Holger Rapp on 2009-02-26.
7
 
# Copyright (c) 2009 HolgerRapp@gmx.net. All rights reserved.
8
 
#
9
 
# Last Modified: $Date$
10
 
#
11
 
 
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
 
]