from django.conf.urls import patterns, include, url

from rest_framework.urlpatterns import format_suffix_patterns

from views import (
    IndexPage,
    ExportOverview,
    ExportCreate,
    ExportDelete,
    ExportToRenderer,
    ExportCreateUpdateCategories
)

datapatterns = patterns(
    '',
    url(
        r'^admin/export/overview/(?P<urlhash>[\w-]+)$',
        ExportToRenderer.as_view(),
        name='export_to_renderer')
)
datapatterns = format_suffix_patterns(datapatterns, allowed=['json', 'kml'])


urlpatterns = patterns(
    '',
    url(
        r'^admin/export/$',
        IndexPage.as_view(),
        name='index'),
    url(
        r'^admin/export/overview/(?P<export_id>[0-9]+)/$',
        ExportOverview.as_view(),
        name='export_overview'),
    url(
        r'^admin/export/overview/(?P<export_id>[0-9]+)/delete/$',
        ExportDelete.as_view(),
        name='export_delete'),
    url(
        r'^admin/export/create/$',
        ExportCreate.as_view(),
        name='export_create'),
    url(
        r'^admin/export/create/(?P<project_id>[0-9]+)/$',
        ExportCreateUpdateCategories.as_view(),
        name='export_create_update_categories'),
    url(
        r'^', include(datapatterns))
)

@@ -320,33 +320,24 @@
 dmin/export/
-overview/
 (?P%3Curlhash%3E
@@ -649,33 +649,24 @@
 dmin/export/
-overview/
 (?P%3Cexport_i
@@ -783,17 +783,8 @@
 ort/
-overview/
 (?P%3C

Remove "overview" from URLs