from django.conf.urls import *

urlpatterns = patterns('custom.apps.wisepill.views',
    url(r'^device/?$', 'device_data', name='device_data'),
    url(r'^export/events/', 'export_events', name='export_wisepill_events'),
)

@@ -122,27 +122,37 @@
 , name='
+wisepill_
 device_
-data
+event
 '),%0A    

Give better url name