X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/23107089660d64637c0459a397dc0ffc77cfceab..78644811ca0c6042212788dc67add42bc41fb74c:/project/urls.py diff --git a/project/urls.py b/project/urls.py deleted file mode 100644 index 19f0520c..00000000 --- a/project/urls.py +++ /dev/null @@ -1,30 +0,0 @@ -from django.conf.urls.defaults import * -from django.contrib import admin -from django.conf import settings - - -admin.autodiscover() - - -urlpatterns = patterns('', - # Example: - url(r'^$', 'explorer.views.file_list', name='file_list'), - url(r'^file/(?P[^/]+)/$', 'explorer.views.file_xml', name='file_xml'), - url(r'^html/(?P[^/]+)/$', 'explorer.views.file_html', name='file_html'), - url(r'^images/(?P[^/]+)/$', 'explorer.views.folder_images', name='folder_image'), - url(r'^images/$', 'explorer.views.folder_images', {'folder': '.'}, name='folder_image_ajax'), - - # Admin panel - url(r'^admin/doc/', include('django.contrib.admindocs.urls')), - url(r'^admin/(.*)', admin.site.root), -) - - -# Static files -if settings.DEBUG: - urlpatterns += patterns('', - url(r'^%s(?P.+)$' % settings.MEDIA_URL[1:], 'django.views.static.serve', - {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}), - url(r'^%s(?P.+)$' % settings.STATIC_URL[1:], 'django.views.static.serve', - {'document_root': settings.STATIC_ROOT, 'show_indexes': True}), - )