質問編集履歴
2
試したことの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -394,6 +394,20 @@
|
|
394
394
|
|
395
395
|
|
396
396
|
|
397
|
+
### 試したこと
|
398
|
+
|
399
|
+
class から def にすると表示は可能なことからforms.pyの記述には問題なし(?)
|
400
|
+
|
401
|
+
def StudentUserAdd(FormView):
|
402
|
+
|
403
|
+
return HttpResponse(str(UserAddForm()))
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
397
411
|
### 補足情報(FW/ツールのバージョンなど)
|
398
412
|
|
399
413
|
Python3.6.8
|
1
python runserverのエラーも記載いたしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -70,6 +70,30 @@
|
|
70
70
|
|
71
71
|
|
72
72
|
|
73
|
+
```
|
74
|
+
|
75
|
+
Internal Server Error: /user/add
|
76
|
+
|
77
|
+
Traceback (most recent call last):
|
78
|
+
|
79
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
|
80
|
+
|
81
|
+
response = get_response(request)
|
82
|
+
|
83
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
|
84
|
+
|
85
|
+
response = self.process_exception_by_middleware(e, request)
|
86
|
+
|
87
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
|
88
|
+
|
89
|
+
response = wrapped_callback(request, *callback_args, **callback_kwargs)
|
90
|
+
|
91
|
+
TypeError: __init__() takes 1 positional argument but 2 were given
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
|
96
|
+
|
73
97
|
### 該当のソースコード
|
74
98
|
|
75
99
|
|