質問編集履歴
1
html、エラー内容、appアプリケーションのurlを添付いたしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,6 +22,16 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
+
※上記のユーザーが追加されないと言うものは改善いたしました。
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
NoReverseMatch at /accounts/signup/teacher/
|
30
|
+
|
31
|
+
'app' is not a registered namespace
|
32
|
+
|
33
|
+
|
34
|
+
|
25
35
|
### 該当のソースコード
|
26
36
|
|
27
37
|
|
@@ -264,6 +274,154 @@
|
|
264
274
|
|
265
275
|
```
|
266
276
|
|
277
|
+
|
278
|
+
|
279
|
+
accounts/templates/registration/signup_athlete.html
|
280
|
+
|
281
|
+
```html
|
282
|
+
|
283
|
+
{% extends 'base.html' %}
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
{% block title %}Athleteユーザー登録{% endblock %}
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
{% block content %}
|
292
|
+
|
293
|
+
<div class="container">
|
294
|
+
|
295
|
+
<div class=" card">
|
296
|
+
|
297
|
+
<div class="card-header bg-primary text-white">
|
298
|
+
|
299
|
+
Athlete登録フォーム
|
300
|
+
|
301
|
+
</div>
|
302
|
+
|
303
|
+
<div class="card-body">
|
304
|
+
|
305
|
+
<form action="{% url 'accounts:signup_athlete' %}" method="post" enctype="multipart/form-data">
|
306
|
+
|
307
|
+
{% csrf_token %}
|
308
|
+
|
309
|
+
{% for field in form %}
|
310
|
+
|
311
|
+
<div class="form-group">
|
312
|
+
|
313
|
+
<label for="{{ field.id_for_label }}">{{ field.label_tag }}</label>
|
314
|
+
|
315
|
+
{{ field }}
|
316
|
+
|
317
|
+
{{ field.errors }}
|
318
|
+
|
319
|
+
</div>
|
320
|
+
|
321
|
+
{% endfor %}
|
322
|
+
|
323
|
+
<div class="form-group">
|
324
|
+
|
325
|
+
<button type="submit" class="btn btn-primary">登録</button>
|
326
|
+
|
327
|
+
</div>
|
328
|
+
|
329
|
+
</form>
|
330
|
+
|
331
|
+
</div>
|
332
|
+
|
333
|
+
</div>
|
334
|
+
|
335
|
+
</div>
|
336
|
+
|
337
|
+
{% endblock %}
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
```
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
accounts/templates/registration/signup_teacher.html
|
346
|
+
|
347
|
+
```html
|
348
|
+
|
349
|
+
{% extends 'base.html' %}
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
{% block title %}Teacherユーザー登録{% endblock %}
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
{% block content %}
|
358
|
+
|
359
|
+
<div class="container">
|
360
|
+
|
361
|
+
<div class=" card">
|
362
|
+
|
363
|
+
<div class="card-header bg-primary text-white">
|
364
|
+
|
365
|
+
Teacher登録フォーム
|
366
|
+
|
367
|
+
</div>
|
368
|
+
|
369
|
+
<div class="card-body">
|
370
|
+
|
371
|
+
<form action="{% url 'accounts:signup_teacher' %}" method="post" enctype="multipart/form-data">
|
372
|
+
|
373
|
+
{% csrf_token %}
|
374
|
+
|
375
|
+
{% for field in form %}
|
376
|
+
|
377
|
+
<div class="form-group">
|
378
|
+
|
379
|
+
<label for="{{ field.id_for_label }}">{{ field.label_tag }}</label>
|
380
|
+
|
381
|
+
{{ field }}
|
382
|
+
|
383
|
+
{{ field.errors }}
|
384
|
+
|
385
|
+
</div>
|
386
|
+
|
387
|
+
{% endfor %}
|
388
|
+
|
389
|
+
<div class="form-group">
|
390
|
+
|
391
|
+
<button type="submit" class="btn btn-primary">登録</button>
|
392
|
+
|
393
|
+
</div>
|
394
|
+
|
395
|
+
</form>
|
396
|
+
|
397
|
+
</div>
|
398
|
+
|
399
|
+
</div>
|
400
|
+
|
401
|
+
</div>
|
402
|
+
|
403
|
+
{% endblock %}
|
404
|
+
|
405
|
+
```
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
app/urls.py
|
412
|
+
|
413
|
+
```urls
|
414
|
+
|
415
|
+
urlpatterns = [
|
416
|
+
|
417
|
+
path('', views.athlete_list, name='list')
|
418
|
+
|
419
|
+
]
|
420
|
+
|
421
|
+
```
|
422
|
+
|
423
|
+
|
424
|
+
|
267
425
|
### 試したこと
|
268
426
|
|
269
427
|
何かと検索しまくりましたが、どこがいけないのか混乱してきてしまいました。
|