質問編集履歴
2
試したことの追記
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -196,6 +196,13 @@
|
|
|
196
196
|
|
|
197
197
|
```
|
|
198
198
|
|
|
199
|
+
### 試したこと
|
|
200
|
+
class から def にすると表示は可能なことからforms.pyの記述には問題なし(?)
|
|
201
|
+
def StudentUserAdd(FormView):
|
|
202
|
+
return HttpResponse(str(UserAddForm()))
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
199
206
|
### 補足情報(FW/ツールのバージョンなど)
|
|
200
207
|
Python3.6.8
|
|
201
208
|
Django3.0.8
|
1
python runserverのエラーも記載いたしました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -34,6 +34,18 @@
|
|
|
34
34
|
'/usr/lib/python3.6/site-packages']
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
+
```
|
|
38
|
+
Internal Server Error: /user/add
|
|
39
|
+
Traceback (most recent call last):
|
|
40
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
|
|
41
|
+
response = get_response(request)
|
|
42
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
|
|
43
|
+
response = self.process_exception_by_middleware(e, request)
|
|
44
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
|
|
45
|
+
response = wrapped_callback(request, *callback_args, **callback_kwargs)
|
|
46
|
+
TypeError: __init__() takes 1 positional argument but 2 were given
|
|
47
|
+
```
|
|
48
|
+
|
|
37
49
|
### 該当のソースコード
|
|
38
50
|
|
|
39
51
|
```Django
|