-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
26 lines (22 loc) · 1.08 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from django.conf.urls.defaults import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
(r'^characters/$', 'characters.views.index'),
(r'^characters/(?P<server_name>\w+)/(?P<character_name>\w+)/$', 'characters.views.show'),
(r'^characters/create/$', 'characters.views.create'),
(r'^characters/update/$', 'characters.views.update'),
(r'^characters/current/$', 'characters.views.current'),
(r'^security/login$', 'security.views.login'),
(r'^security/login/$', 'security.views.login'),
(r'^security/logout/$', 'security.views.logout'),
(r'^$', 'home.views.index'),
(r'^register/', 'home.views.register'),
(r'^user/$', 'users.views.index'),
(r'^guilds/create/', 'guilds.views.create'),
(r'^guilds/(?P<server_name>\w+)/(?P<guild_name>[\w|\W]+)/$', 'guilds.views.show'),
(r'^servers/(?P<server_name>\w+)/$', 'servers.views.show'),
)
urlpatterns += staticfiles_urlpatterns()