質問編集履歴
2
本文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
migrate時に以下のエラーが出ます。
|
5
5
|
「django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.」
|
6
6
|
|
7
|
-
setting.pyは以下のように設定しています。
|
7
|
+
settings.pyは以下のように設定しています。
|
8
|
-
```setting.py(一部)
|
8
|
+
```settings.py(一部)
|
9
9
|
|
10
10
|
import os
|
11
11
|
from pathlib import Path
|
@@ -66,7 +66,7 @@
|
|
66
66
|
```
|
67
67
|
またrunserver時は、「CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.」とのエラーになります。
|
68
68
|
設定は以下にしています。
|
69
|
-
```setting.py(一部)
|
69
|
+
```settings.py(一部)
|
70
70
|
DEBUG = True
|
71
71
|
ALLOWED_HOSTS = []
|
72
72
|
```
|
1
コード追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -67,6 +67,7 @@
|
|
67
67
|
またrunserver時は、「CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.」とのエラーになります。
|
68
68
|
設定は以下にしています。
|
69
69
|
```setting.py(一部)
|
70
|
+
DEBUG = True
|
70
71
|
ALLOWED_HOSTS = []
|
71
72
|
```
|
72
73
|
|