-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
26 lines (21 loc) · 904 Bytes
/
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
26
from django.conf import settings
from django.conf.urls.defaults import url, include, patterns
from django.contrib import admin
#from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views import static
admin.autodiscover()
# Do not use 5 char links to avoid confusion with fiddles
urlpatterns = patterns('',
(r'^api/v1/', include('fiber.api.urls')),
(r'^admin/fiber/', include('fiber.admin_urls')),
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages': ('fiber',),}),
(r'^admin/', include(admin.site.urls)),
)
#urlpatterns += staticfiles_urlpatterns()
if settings.DEBUG:
urlpatterns += patterns('django.contrib.staticfiles.views',
url(r'^static/(?P<path>.*)$', 'serve'),
)
urlpatterns += patterns('',
url(r'uploads/(?P<path>.*)$', static.serve,
{'document_root': settings.UPLOADS_ROOT}, name='media'),)