from django.conf.urls import patterns, url from explorer.views import QueryView, CreateQueryView, PlayQueryView, DeleteQueryView, ListQueryView urlpatterns = patterns('', url(r'(?P<query_id>\d+)/$', QueryView.as_view(), name='query_detail'), url(r'(?P<query_id>\d+)/download$', 'explorer.views.download_query', name='query_download'), url(r'(?P<pk>\d+)/delete$', DeleteQueryView.as_view(), name='query_delete'), url(r'new/$', CreateQueryView.as_view(), name='query_create'), url(r'play/$', PlayQueryView.as_view(), name='explorer_playground'), url(r'csv$', 'explorer.views.csv_from_sql', name='generate_csv'), url(r'schema/$', 'explorer.views.schema', name='explorer_schema'), url(r'$', ListQueryView.as_view(), name='explorer_index'), )
ListQueryLogView, DownloadFromSqlView, DownloadQueryView, StreamQueryView, EmailCsvQueryView, SchemaView, format_sql, ) urlpatterns = [ url(r'(?P<query_id>\d+)/$', QueryView.as_view(), name='query_detail'), url(r'(?P<query_id>\d+)/download$', DownloadQueryView.as_view(), name='download_query'), url(r'(?P<query_id>\d+)/stream$', StreamQueryView.as_view(), name='stream_query'), url(r'download$', DownloadFromSqlView.as_view(), name='download_sql'), url(r'(?P<query_id>\d+)/email_csv$', EmailCsvQueryView.as_view(), name='email_csv_query'), url(r'(?P<pk>\d+)/delete$', DeleteQueryView.as_view(), name='query_delete'), url(r'new/$', CreateQueryView.as_view(), name='query_create'), url(r'play/$', PlayQueryView.as_view(), name='explorer_playground'), url(r'schema/$', SchemaView.as_view(), name='explorer_schema'), url(r'logs/$', ListQueryLogView.as_view(), name='explorer_logs'), url(r'format/$', format_sql, name='format_sql'), url(r'^$', ListQueryView.as_view(), name='explorer_index'), ]
from django.conf.urls import patterns, url from explorer.views import QueryView, CreateQueryView, PlayQueryView, DeleteQueryView, ListQueryView, ListQueryLogView urlpatterns = patterns( "", url(r"(?P<query_id>\d+)/$", QueryView.as_view(), name="query_detail"), url(r"(?P<query_id>\d+)/download$", "explorer.views.download_query", name="query_download"), url(r"(?P<query_id>\d+)/csv$", "explorer.views.view_csv_query", name="query_csv"), url(r"(?P<query_id>\d+)/email_csv$", "explorer.views.email_csv_query", name="email_csv_query"), url(r"(?P<pk>\d+)/delete$", DeleteQueryView.as_view(), name="query_delete"), url(r"new/$", CreateQueryView.as_view(), name="query_create"), url(r"play/$", PlayQueryView.as_view(), name="explorer_playground"), url(r"csv$", "explorer.views.download_csv_from_sql", name="generate_csv"), url(r"schema/$", "explorer.views.schema", name="explorer_schema"), url(r"logs/$", ListQueryLogView.as_view(), name="explorer_logs"), url(r"format/$", "explorer.views.format_sql", name="format_sql"), url(r"^$", ListQueryView.as_view(), name="explorer_index"), )
CreateQueryView, DeleteQueryView, DownloadFromSqlView, DownloadQueryView, ListQueryLogView, ListQueryView, PlayQueryView, QueryView, ) urlpatterns = [ path('', PlayQueryView.as_view(), name='explorer_index'), path('auth/', include('authbroker_client.urls', namespace='authbroker')), path('download/', DownloadFromSqlView.as_view(), name='download_sql'), path('queries/', ListQueryView.as_view(), name='list_queries'), path('queries/create/', CreateQueryView.as_view(), name='query_create'), path('queries/<int:query_id>/', QueryView.as_view(), name='query_detail'), path('queries/<int:query_id>/download/', DownloadQueryView.as_view(), name='download_query'), path('queries/<int:pk>/delete/', DeleteQueryView.as_view(), name='query_delete'), path('logs/', ListQueryLogView.as_view(), name='explorer_logs'), ] if settings.DEBUG: import debug_toolbar urlpatterns = [path('__debug__/', include(debug_toolbar.urls)),] + urlpatterns # Build schema cache at startup in background if not settings.MULTIUSER_DEPLOYMENT and not settings.TEST: def build_schema():
DownloadFromSqlView, DownloadQueryView, StreamQueryView, EmailCsvQueryView, SchemaView, format_sql, ) urlpatterns = [ path('<int:query_id>/', QueryView.as_view(), name='query_detail'), path('<int:query_id>/download', DownloadQueryView.as_view(), name='download_query'), path('<int:query_id>/stream', StreamQueryView.as_view(), name='stream_query'), path('download', DownloadFromSqlView.as_view(), name='download_sql'), path('<int:query_id>/email_csv', EmailCsvQueryView.as_view(), name='email_csv_query'), path('<int:pk>/delete', DeleteQueryView.as_view(), name='query_delete'), path('new/', CreateQueryView.as_view(), name='query_create'), path('play/', PlayQueryView.as_view(), name='explorer_playground'), re_path(r'schema/(?P<connection>.+)$', SchemaView.as_view(), name='explorer_schema'), path('logs/', ListQueryLogView.as_view(), name='explorer_logs'), path('format/', format_sql, name='format_sql'), path('', ListQueryView.as_view(), name='explorer_index'), ]