1 from django
.conf
.urls
.defaults
import *
3 urlpatterns
= patterns('',
4 url(r
'^$', 'booki.editor.views.view_project', name
='view_project'),
5 url(r
'^edit/', 'booki.editor.views.view_editor', name
='view_editor'),
8 url(r
'^(?P<edition>[\w\s\_\.\-]+)/_utils/thumbnail/(?P<attachment>.*)$', 'booki.editor.views.thumbnail_attachment', name
='thumbnail_attachment'),
10 url(r
'^(?P<edition>[\w\s\_\.\-]+)/_upload/$', 'booki.editor.views.upload_attachment', name
='upload_attachment'),
13 url(r
'^(?P<edition>[\w\s\_\.\-]+)/export/{0,1}$', 'booki.editor.views.view_export', name
='export_booki'),
14 url(r
'^(?P<edition>[\w\s\_\.\-]+)/static/(?P<attachment>.*)$', 'booki.editor.views.view_attachment', name
='view_attachment'),
18 url(r
'^(?P<edition>[\w\s\_\.\-]+)/edit/$', 'booki.editor.views.edit_book', name
='edit_book'),
19 url(r
'^(?P<edition>[\w\s\_\.\-]+)/(?P<chapter>[\w\s\_\.\-]+)/$', 'booki.editor.views.view_chapter', name
='view_chapter'),
20 url(r
'^(?P<edition>[\w\s\_\.\-]+)/$', 'booki.editor.views.view_book', name
='view_book')