~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlmaps/urls.py

  • Committer: Holger Rapp
  • Date: 2010-09-26 13:30:30 UTC
  • Revision ID: sirver@gmx.de-20100926133030-ceirjf83vde91tyt
Added a simple events model to display dates on the homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python -tt
2
2
# encoding: utf-8
3
 
from django.conf.urls import *
 
3
from django.conf.urls.defaults import *
4
4
from models import Map
5
5
from views import *
6
6
 
7
 
 
8
 
urlpatterns = [
9
 
    url(r'^$', index, name='wlmaps_index'),
10
 
    url(r'^upload/$', upload, name='wlmaps_upload'),
11
 
 
12
 
    url(r'^(?P<map_slug>[-\w]+)/$',
13
 
        view, name='wlmaps_view'),
14
 
    url(r'^(?P<map_slug>[-\w]+)/edit_comment/$',
15
 
        edit_comment, name='wlmaps_edit_comment'),
16
 
    url(r'^(?P<map_slug>[-\w]+)/download/$',
17
 
        download, name='wlmaps_download'),
18
 
]
 
7
urlpatterns = patterns('',
 
8
    url(r'^$', index, name="wlmaps_index" ),
 
9
    url(r'^upload/$', upload, name = "wlmaps_upload" ),
 
10
    
 
11
    url(r'^(?P<map_slug>[-\w]+)/$', view, name = "wlmaps_view" ),
 
12
    url(r'^(?P<map_slug>[-\w]+)/download/$', download, name = "wlmaps_download" ),
 
13
    
 
14
    url(r'^(?P<map_slug>[-\w]+)/rate/$', rate, name = "wlmaps_rate" ),
 
15
)
 
16