source: dashwiki/urls.py @ 48380833447903591eee8117daadc89fdd641664

Revision 48380833447903591eee8117daadc89fdd641664, 774 bytes checked in by Stanislaw Klekot <dozzie@…>, 7 years ago (diff)

Added login/logout forms.

  • Property mode set to 100644
Line 
1from django.conf.urls.defaults import *
2
3# Uncomment the next two lines to enable the admin:
4# from django.contrib import admin
5# admin.autodiscover()
6
7urlpatterns = patterns('wiki.views',
8  # FIXME: these two are fugly way of calling display_wiki()
9  (r'^$',     'handle_wiki', {'page_name': 'WikiStart'}),
10  (r'^wiki$', 'handle_wiki', {'page_name': 'WikiStart'}),
11  (r'^wiki/', include('wiki.urls')),
12  (r'^newpage', 'create_wiki'),
13  (r'^history', 'list_history'),
14  (r'^pages',   'list_pages'),
15
16  (r'^macros/?$', 'list_macros'),
17  (r'^macros/create/?$', 'create_macro'),
18  (r'^macros/edit/(?P<macro_name>[a-zA-Z0-9_]+)$',   'edit_macro'),
19  (r'^macros/remove/(?P<macro_name>[a-zA-Z0-9_]+)$', 'remove_macro'),
20
21  (r'^login/?$',  'login'),
22  (r'^logout/?$', 'logout'),
23)
Note: See TracBrowser for help on using the repository browser.