[go: up one dir, main page]

Menu

[0fbd21]: / wikigun / urls.py  Maximize  Restore  History

Download this file

65 lines (53 with data), 2.9 kB

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- coding:utf-8 -*-
"""-----------------------------------------------------------------------------
This source file is part of OSTIS (Open Semantic Technology for Intelligent Systems)
For the latest info, see http://www.ostis.net
Copyright (c) 2010 OSTIS
OSTIS is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OSTIS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with OSTIS. If not, see <http://www.gnu.org/licenses/>.
-----------------------------------------------------------------------------
'''
Created on 20.02.2011
@author: Mikhail Baleiko
'''
"""
from django.conf.urls.defaults import *
from django.conf import settings
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
handler404 = 'wikigun.wiki.views.genericError'
handler500 = 'wikigun.wiki.views.genericError'
urlpatterns = patterns('',
# Example:
# (r'^wikigun/', include('wikigun.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
#(r'^wikigun/(?P<page_name>[^/]+)/$', 'wikigun.wiki.views.view_page'),
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_DOC_ROOT}),
#(r'^wikigun/(?P<module_name>[^/]+)/$', 'wikigun.wiki.main_action.requestParser'),
(r'^(?P<node>[^/]+):(?P<moduleName>[^/]+)/$', 'wikigun.wiki.views.requestParser'),
(r'^$','wikigun.wiki.views.mainPage',),
(r'^node/(?P<node>[^/]+)/edit$', 'wikigun.wiki.views.nodeEdit'),
(r'^node/(?P<node>[^/]+)/view$', 'wikigun.wiki.views.nodeView'),
(r'^node/(?P<node>[^/]+)/delete$', 'wikigun.wiki.views.nodeDelete'),
(r'^node/list$', 'wikigun.wiki.views.nodeList'),
(r'^scfields/(?P<name>[^/]+)/edit$', 'wikigun.wiki.views.scfieldsEdit'),
(r'^scfields/list$', 'wikigun.wiki.views.scfieldsList'),
(r'^scfields/(?P<name>[^/]+)/delete$', 'wikigun.wiki.views.scFieldsDelete'),
#(r'^wikigun/(?P<page_name>[^/]+)/$', 'wikigun.wiki.main_action.requestParser'),
#(r'^wikigun/(?P<page_name>[^/]+)/edit/$', 'wikigun.wiki.views.edit_page'),
#(r'^wikigun/(?P<page_name>[^/]+)/save/$', 'wikigun.wiki.views.save_page')
)