質問編集履歴
7
質問の解答
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
```
|
22
22
|
|
23
|
-
|
23
|
+
Ensure this field has no more than 20000 characters.
|
24
24
|
|
25
25
|
```
|
26
26
|
|
6
質問の解答
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,6 +66,268 @@
|
|
66
66
|
|
67
67
|
|
68
68
|
|
69
|
+
```
|
70
|
+
|
71
|
+
"""
|
72
|
+
|
73
|
+
Django settings for tutorial project.
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
Generated by 'django-admin startproject' using Django 2.2.13.
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
For more information on this file, see
|
82
|
+
|
83
|
+
https://docs.djangoproject.com/en/2.2/topics/settings/
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
For the full list of settings and their values, see
|
88
|
+
|
89
|
+
https://docs.djangoproject.com/en/2.2/ref/settings/
|
90
|
+
|
91
|
+
"""
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
import os
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
100
|
+
|
101
|
+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
# Quick-start development settings - unsuitable for production
|
108
|
+
|
109
|
+
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
# SECURITY WARNING: keep the secret key used in production secret!
|
114
|
+
|
115
|
+
省略
|
116
|
+
|
117
|
+
# SECURITY WARNING: don't run with debug turned on in production!
|
118
|
+
|
119
|
+
DEBUG = True
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
ALLOWED_HOSTS = []
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
# Application definition
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
INSTALLED_APPS = [
|
134
|
+
|
135
|
+
'django.contrib.admin',
|
136
|
+
|
137
|
+
'django.contrib.auth',
|
138
|
+
|
139
|
+
'django.contrib.contenttypes',
|
140
|
+
|
141
|
+
'django.contrib.sessions',
|
142
|
+
|
143
|
+
'django.contrib.messages',
|
144
|
+
|
145
|
+
'django.contrib.staticfiles',
|
146
|
+
|
147
|
+
'rest_framework',
|
148
|
+
|
149
|
+
'tutorial.quickstart',
|
150
|
+
|
151
|
+
]
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
MIDDLEWARE = [
|
156
|
+
|
157
|
+
'django.middleware.security.SecurityMiddleware',
|
158
|
+
|
159
|
+
'django.contrib.sessions.middleware.SessionMiddleware',
|
160
|
+
|
161
|
+
'django.middleware.common.CommonMiddleware',
|
162
|
+
|
163
|
+
'django.middleware.csrf.CsrfViewMiddleware',
|
164
|
+
|
165
|
+
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
166
|
+
|
167
|
+
'django.contrib.messages.middleware.MessageMiddleware',
|
168
|
+
|
169
|
+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
170
|
+
|
171
|
+
]
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
ROOT_URLCONF = 'tutorial.urls'
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
TEMPLATES = [
|
180
|
+
|
181
|
+
{
|
182
|
+
|
183
|
+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
184
|
+
|
185
|
+
'DIRS': [],
|
186
|
+
|
187
|
+
'APP_DIRS': True,
|
188
|
+
|
189
|
+
'OPTIONS': {
|
190
|
+
|
191
|
+
'context_processors': [
|
192
|
+
|
193
|
+
'django.template.context_processors.debug',
|
194
|
+
|
195
|
+
'django.template.context_processors.request',
|
196
|
+
|
197
|
+
'django.contrib.auth.context_processors.auth',
|
198
|
+
|
199
|
+
'django.contrib.messages.context_processors.messages',
|
200
|
+
|
201
|
+
],
|
202
|
+
|
203
|
+
},
|
204
|
+
|
205
|
+
},
|
206
|
+
|
207
|
+
]
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
WSGI_APPLICATION = 'tutorial.wsgi.application'
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
# Database
|
218
|
+
|
219
|
+
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
DATABASES = {
|
224
|
+
|
225
|
+
'default': {
|
226
|
+
|
227
|
+
'ENGINE': 'djongo',
|
228
|
+
|
229
|
+
'NAME': 'pointcloud',
|
230
|
+
|
231
|
+
}
|
232
|
+
|
233
|
+
}
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
# Password validation
|
240
|
+
|
241
|
+
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
AUTH_PASSWORD_VALIDATORS = [
|
246
|
+
|
247
|
+
{
|
248
|
+
|
249
|
+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
250
|
+
|
251
|
+
},
|
252
|
+
|
253
|
+
{
|
254
|
+
|
255
|
+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
256
|
+
|
257
|
+
},
|
258
|
+
|
259
|
+
{
|
260
|
+
|
261
|
+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
262
|
+
|
263
|
+
},
|
264
|
+
|
265
|
+
{
|
266
|
+
|
267
|
+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
268
|
+
|
269
|
+
},
|
270
|
+
|
271
|
+
]
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
# Internationalization
|
278
|
+
|
279
|
+
# https://docs.djangoproject.com/en/2.2/topics/i18n/
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
LANGUAGE_CODE = 'en-us'
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
TIME_ZONE = 'UTC'
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
USE_I18N = True
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
USE_L10N = True
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
USE_TZ = True
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
# Static files (CSS, JavaScript, Images)
|
306
|
+
|
307
|
+
# https://docs.djangoproject.com/en/2.2/howto/static-files/
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
STATIC_URL = '/static/'
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
REST_FRAMEWORK = {
|
316
|
+
|
317
|
+
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
|
318
|
+
|
319
|
+
'PAGE_SIZE': 10
|
320
|
+
|
321
|
+
}
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
```
|
328
|
+
|
329
|
+
|
330
|
+
|
69
331
|
###試したこと
|
70
332
|
|
71
333
|
settings.pyに
|
5
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
その際に、サイズの小さなデータは成功するのですが、
|
8
8
|
|
9
|
-
以下のようにx,y,z(110kbyte程度ずつ)のデータをvalueとして設定すると400エラーが返ってきます。
|
9
|
+
以下のようにx,y,z(110kbyte程度ずつの文字列)のデータをvalueとして設定すると400エラーが返ってきます。
|
10
10
|
|
11
11
|
何が原因なのでしょうか。
|
12
12
|
|
4
記載ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
その際に、サイズの小さなデータは成功するのですが、
|
8
8
|
|
9
|
-
以下のようにx,y,z(
|
9
|
+
以下のようにx,y,z(110kbyte程度ずつ)のデータをvalueとして設定すると400エラーが返ってきます。
|
10
10
|
|
11
11
|
何が原因なのでしょうか。
|
12
12
|
|
3
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,6 +27,16 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
### 該当のソースコード
|
30
|
+
|
31
|
+
```
|
32
|
+
|
33
|
+
//送信するデータ
|
34
|
+
|
35
|
+
print(x[:100])
|
36
|
+
|
37
|
+
//-120.000000,-170.153854,-257.250000,-316.144226,-344.192322,-462.980774,-471.038483,-475.201935,-565
|
38
|
+
|
39
|
+
```
|
30
40
|
|
31
41
|
|
32
42
|
|
2
記載ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -53,3 +53,17 @@
|
|
53
53
|
print(res.status_code)
|
54
54
|
|
55
55
|
```
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
###試したこと
|
60
|
+
|
61
|
+
settings.pyに
|
62
|
+
|
63
|
+
```
|
64
|
+
|
65
|
+
DATA_UPLOAD_MAX_MEMORY_SIZE = 5242880
|
66
|
+
|
67
|
+
```
|
68
|
+
|
69
|
+
を追加しても変わらなかったので、容量の問題ではないのかなと思います。
|
1
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,11 +36,11 @@
|
|
36
36
|
|
37
37
|
data={
|
38
38
|
|
39
|
-
'x': x,
|
39
|
+
'x': x, (110kbyte前後)
|
40
40
|
|
41
|
-
'y': y,
|
41
|
+
'y': y, (110kbyte前後)
|
42
42
|
|
43
|
-
'z': z,
|
43
|
+
'z': z, (110kbyte前後)
|
44
44
|
|
45
45
|
}
|
46
46
|
|