* End of javascript refactoring: both editors, history and gallery work as expected.
[redakcja.git] / platforma / urls.py
index 9b4b1a2..c31e145 100644 (file)
@@ -7,11 +7,6 @@ from django.conf import settings
 admin.autodiscover()
 
 urlpatterns = patterns('',
-    url(r'^$', 'wiki.views.document_list'),
-    url(r'^gallery/(?P<directory>[^/]+)$', 'wiki.views.document_gallery'),
-    url(r'^(?P<name>[^/]+)/history$', 'wiki.views.document_history'),
-    url(r'^(?P<name>[^/]+)/diff/(?P<revA>\d+)/(?P<revB>\d+)$', 'wiki.views.document_diff'),
-
     # Auth
     url(r'^accounts/login/$', 'django_cas.views.login', name = 'login'),
     url(r'^accounts/logout/$', 'django_cas.views.logout', name = 'logout'),
@@ -28,6 +23,5 @@ urlpatterns = patterns('',
         {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
     url(r'^%s(?P<path>.+)$' % settings.STATIC_URL[1:], 'django.views.static.serve',
         {'document_root': settings.STATIC_ROOT, 'show_indexes': True}),
-
-    url(r'^(?P<name>[^/]+)$', 'wiki.views.document_detail'),
+    url(r'^', include('wiki.urls')),
 )