~widelands-dev/widelands-website/django_staticfiles

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python -tt
# encoding: utf-8
from django.conf.urls import *
from models import Map
from views import *


urlpatterns = [
    url(r'^$', index, name='wlmaps_index'),
    url(r'^upload/$', upload, name='wlmaps_upload'),

    url(r'^(?P<map_slug>[-\w]+)/$',
        view, name='wlmaps_view'),
    url(r'^(?P<map_slug>[-\w]+)/edit_comment/$',
        edit_comment, name='wlmaps_edit_comment'),
    url(r'^(?P<map_slug>[-\w]+)/download/$',
        download, name='wlmaps_download'),
]