-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
executable file
·25 lines (19 loc) · 1.02 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.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'partilus.common.views.home', name='home'),
url(r'^addfolder/(\w+)/$','partilus.common.views.addfolder',name='addfolder'),
url(r'^searchfile/$', 'partilus.common.views.searchfile', name='searchfile'),
url(r'^copy/(\w+)/$', 'partilus.common.views.copy', name='copy'),
url(r'^paste/$', 'partilus.common.views.paste', name='paste'),
url(r'^delete/$', 'partilus.common.views.delete', name='delete'),
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT }),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)