Denote/denote/urls.py

42 lines
2.0 KiB
Python
Raw Normal View History

2015-09-24 18:31:03 +02:00
# -*- coding: utf-8 -*-
"""
Copyright 2015 Grégory Soutadé
This file is part of Dénote.
Dénote is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Dénote 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with Dénote. If not, see <http://www.gnu.org/licenses/>.
"""
from django.conf.urls import patterns, include, url
urlpatterns = patterns('',
url(r'^index[/]?$', 'denote.views.index', name='index'),
url(r'^[/]?$', 'denote.views.index', name='index'),
url(r'^disconnect?$', 'denote.views.disconnect', name='disconnect'),
2016-06-30 20:13:15 +02:00
url(r'^user/add$','denote.views.new_user', name='new_user'),
2015-09-24 18:31:03 +02:00
url(r'^user/edit$','denote.views.edit_user', name='edit_user'),
url(r'^note/add$', 'denote.views.add_note', name='add_note'),
url(r'^note/(\d+)$', 'denote.views.note', name='note'),
2016-06-14 11:09:11 +02:00
url(r'^note/(\d+)/(\d+)$', 'denote.views.public_note', name='public_note'),
2016-06-14 11:28:37 +02:00
url(r'^public_notes$', 'denote.views.public_notes', name='public_notes'),
2015-09-24 18:31:03 +02:00
url(r'^category/edit/(\d)$','denote.views.edit_category', name='edit_category'),
url(r'^preferences$', 'denote.views.preferences', name='preferences'),
2016-01-17 18:48:14 +01:00
url(r'^search$', 'denote.views.search', name='search'),
url(r'^generate_search_index$', 'denote.views.generate_search_index', name='generate_search_index'),
2016-06-30 20:13:15 +02:00
url(r'^template/add$','denote.views.add_template', name='add_template'),
url(r'^template/(\d+)$','denote.views.template', name='template'),
url(r'^templates$','denote.views.templates', name='templates'),
2015-09-24 18:31:03 +02:00
)