diff --git a/doccano/app/server/templates/project_detail.html b/doccano/app/server/templates/project_detail.html deleted file mode 100644 index 0cd55011..00000000 --- a/doccano/app/server/templates/project_detail.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends "base.html" %} -{% load static %} -{% block content %} -
-
- -
-
-
-

{{ object.name }}

-
-
-

- -

-
-
-
-

{{ object.description|truncatechars:200 }}

-

- @jsmith created at {{ object.created_at|date }}   - Question -

-
-
-
- - 1 -
-
-
-
-
- - -
- New Project - -
- -
-
-{% endblock %} \ No newline at end of file diff --git a/doccano/app/server/urls.py b/doccano/app/server/urls.py index f8347b21..35e498e9 100644 --- a/doccano/app/server/urls.py +++ b/doccano/app/server/urls.py @@ -1,13 +1,12 @@ from django.urls import path from .views import AnnotationView, AnnotationAPIView, MetaInfoAPI, SearchAPI -from .views import ProjectListView, ProjectDetailView, ProjectAdminView, RawDataAPI, LabelAPI +from .views import ProjectListView, ProjectAdminView, RawDataAPI, LabelAPI urlpatterns = [ path('', ProjectListView.as_view(), name='project-list'), - path('/', ProjectDetailView.as_view(), name='project-detail'), path('/admin', ProjectAdminView.as_view()), - path('/docs', AnnotationView.as_view()), + path('/', AnnotationView.as_view()), path('/apis/data', AnnotationAPIView.as_view()), path('/apis/raw_data', RawDataAPI.as_view(), name='data_api'), path('/apis/labels', LabelAPI.as_view(), name='label_api'), diff --git a/doccano/app/server/views.py b/doccano/app/server/views.py index a47c3517..df90f7e0 100644 --- a/doccano/app/server/views.py +++ b/doccano/app/server/views.py @@ -150,16 +150,6 @@ class ProjectListView(ListView): return context -class ProjectDetailView(DetailView): - - model = Project - template_name = 'project_detail.html' - - def get_context_data(self, **kwargs): - context = super().get_context_data(**kwargs) - return context - - class ProjectAdminView(DetailView): model = Project