name="upload"), url(r'^(?P<username>[-\w]+)/(?P<project>[-\w]+)/delete/$', ProjectDeleteView.as_view(), name="delete_project"), url(r'^(?P<username>[-\w]+)/(?P<project>[-\w]+)/fork/$', ProjectCloneView.as_view(), name="fork_project"), url(r'^(?P<username>[-\w]+)/(?P<project>[-\w]+)/(?P<dataset>[-\w]+)/delete/$', DatasetDeleteView.as_view(), name="dataset_detail"), url(r'^(?P<username>[-\w]+)/(?P<project>[-\w]+)/(?P<dataset>[-\w]+)/api/$', DatasetRetrieveAPIView.as_view(), name="temp_api"), url(r'^(?P<username>[-\w]+)/(?P<project>[-\w]+)/(?P<dataset>[-\w]+)/$', DatasetDetailView.as_view(), name="dataset_detail"), url(r'^(?P<username>[-\w]+)/(?P<project>[-\w]+)/$', ProjectDetailView.as_view(), name="project_detail"), url(r'^(?P<username>[-\w]+)/(?P<project>[-\w]+)/(?P<dataset>[-\w]+)/query/$', dataset_query_view, name="dataset_query"), ]
from django.conf.urls import url from code_processing.api import SubmittedCodeCreateAPIView from data_analysis.api import DatasetRetrieveAPIView, ProjectRetrieveAPIView urlpatterns = [ url(r'^dataset/(?P<pk>\d+)/$', DatasetRetrieveAPIView.as_view(), name="dataset"), url(r'^submittedcode/$', SubmittedCodeCreateAPIView.as_view(), name="code"), url(r'^project/(?P<pk>\d+)/$', ProjectRetrieveAPIView.as_view(), name="project") ]