from django.conf.urls import url

from .views import DisplayCreate
from .views import DisplayDelete
from .views import DisplayDetail
from .views import DisplayList
from .views import DisplayUpdate
from .views import SlideCreate
from .views import SlideDelete
from .views import SlideList
from .views import SlideUpdate


app_name = 'signage'

urlpatterns = [
    url(r'^(?P<pk>\d+)/$', DisplayDetail.as_view(), name='display'),
    url(r'^displays/$', DisplayList.as_view(), name='display_list'),
    url(r'^displays/create/$', DisplayCreate.as_view(), name='display_create'),
    url(r'^displays/delete/(?P<pk>\d+)/$', DisplayDelete.as_view(), name='display_delete'),
    url(r'^displays/update/(?P<pk>\d+)/$', DisplayUpdate.as_view(), name='display_update'),
    url(r'^slides/$', SlideList.as_view(), name='slide_list'),
    url(r'^slides/create/$', SlideCreate.as_view(), name='slide_create'),
    url(r'^slides/delete/(?P<pk>\d+)/$', SlideDelete.as_view(), name='slide_delete'),
    url(r'^slides/update/(?P<pk>\d+)/$', SlideUpdate.as_view(), name='slide_update'),
]

@@ -29,37 +29,32 @@
  url%0A%0Afrom .
-views
  import 
 DisplayCreat
@@ -45,273 +45,13 @@
 ort 
-DisplayCreate%0Afrom .views import DisplayDelete%0Afrom .views import DisplayDetail%0Afrom .views import DisplayList%0Afrom .views import DisplayUpdate%0Afrom .views import SlideCreate%0Afrom .views import SlideDelete%0Afrom .views import SlideList%0Afrom .views import SlideUpdate
+views
 %0A%0A%0Aa
@@ -98,16 +98,24 @@
  url(r'%5E
+display/
 (?P%3Cpk%3E%5C
@@ -114,32 +114,38 @@
 (?P%3Cpk%3E%5Cd+)/$', 
+views.
 DisplayDetail.as
@@ -145,72 +145,8 @@
 tail
-.as_view(), name='display'),%0A    url(r'%5Edisplays/$', DisplayList
 .as_
@@ -166,21 +166,16 @@
 'display
-_list
 '),%0A    
@@ -188,17 +188,16 @@
 %5Edisplay
-s
 /create/
@@ -196,24 +196,30 @@
 /create/$', 
+views.
 DisplayCreat
@@ -273,24 +273,16 @@
 %5Edisplay
-s/delete
 /(?P%3Cpk%3E
@@ -282,28 +282,41 @@
 (?P%3Cpk%3E%5Cd+)/
-$', 
+delete/$', views.
 DisplayDelet
@@ -370,24 +370,16 @@
 %5Edisplay
-s/update
 /(?P%3Cpk%3E
@@ -383,20 +383,33 @@
 pk%3E%5Cd+)/
-$', 
+update/$', views.
 DisplayU
@@ -464,24 +464,34 @@
 (r'%5E
-slides/$', Slide
+displays/$', views.Display
 List
@@ -508,21 +508,23 @@
 , name='
-slide
+display
 _list'),
@@ -540,17 +540,16 @@
 r'%5Eslide
-s
 /create/
@@ -548,24 +548,30 @@
 /create/$', 
+views.
 SlideCreate.
@@ -623,16 +623,8 @@
 lide
-s/delete
 /(?P
@@ -628,28 +628,41 @@
 (?P%3Cpk%3E%5Cd+)/
-$', 
+delete/$', views.
 SlideDelete.
@@ -714,16 +714,8 @@
 lide
-s/update
 /(?P
@@ -723,20 +723,33 @@
 pk%3E%5Cd+)/
-$', 
+update/$', views.
 SlideUpd
@@ -785,10 +785,79 @@
 date'),%0A
+    url(r'%5Eslides/$', views.SlideList.as_view(), name='slide_list'),%0A
 %5D%0A

Refactor URL imports and paths