From 538917340d9339880c4b532afea7a518b512f3bb Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 27 Jun 2018 06:21:48 +0900 Subject: [PATCH] Add API --- doccano/app/app/settings.py | 2 +- doccano/app/db.sqlite3 | Bin 196608 -> 196608 bytes doccano/app/server/templates/base.html | 2 +- .../{project_list.html => projects.html} | 0 doccano/app/server/urls.py | 13 +- doccano/app/server/views.py | 114 ++++++++---------- 6 files changed, 60 insertions(+), 71 deletions(-) rename doccano/app/server/templates/{project_list.html => projects.html} (100%) diff --git a/doccano/app/app/settings.py b/doccano/app/app/settings.py index a9fbcfd7..f5532545 100644 --- a/doccano/app/app/settings.py +++ b/doccano/app/app/settings.py @@ -114,7 +114,7 @@ REST_FRAMEWORK = { 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly' ], 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', - 'PAGE_SIZE': 2, + 'PAGE_SIZE': 10, 'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'SEARCH_PARAM': 'q', } diff --git a/doccano/app/db.sqlite3 b/doccano/app/db.sqlite3 index fb73d843beb6aecad6f026d624b9e1584c71d5df..848dfb1738d562206d1319d9e569106cb682a096 100644 GIT binary patch delta 254 zcmZo@;Av>!nIO&RJyFJ))tf<2;>5<3ocX+#RwkxahNgPv=7we_&3EUw-<{96{qB4w zbp;M4-WCSFL%c1U6%{IYHJYrMSbbYq9St)xGD^z~b4)UeD$=t{DvOHEN|OysOpA=N zO_C}t)3?7m$Hc)XhA`L6(%7)cnh~sd`h)vS3Lq6yj2uk-+Zp(`^WWJln6R2(RfXA? zk&w|$)9>78(g12a%)tMM|1ePFc7Ay|W=BRN149d419M$N0|f(Aiv1xNrb{c^EnY@ZD>Ix#UiG%zkXH#IppgWaEp-Jb!s z-Jb#{AO-;r!T=7!vmr3J4hVuf0R>Hj1wohK-vS`F>dpch0R{mN+yD>Uvk_p@50~8E X0w@Ln58?n1;