質問編集履歴
2
試したこと追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,6 +54,148 @@
|
|
54
54
|
|
55
55
|
|
56
56
|
|
57
|
+
### 試したこと
|
58
|
+
|
59
|
+
settings.pyに以下行を追加
|
60
|
+
|
61
|
+
SESSION_ENGINE = 'django.conrtib.sessions.backends.cache'
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
上述の行を追加すると以下エラー発生
|
66
|
+
|
67
|
+
```
|
68
|
+
|
69
|
+
Exception in thread django-main-thread:
|
70
|
+
|
71
|
+
Traceback (most recent call last):
|
72
|
+
|
73
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/servers/basehttp.py", line 45, in get_internal_wsgi_application
|
74
|
+
|
75
|
+
return import_string(app_path)
|
76
|
+
|
77
|
+
File "/usr/local/lib64/python3.6/site-packages/django/utils/module_loading.py", line 17, in import_string
|
78
|
+
|
79
|
+
module = import_module(module_path)
|
80
|
+
|
81
|
+
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
|
82
|
+
|
83
|
+
return _bootstrap._gcd_import(name[level:], package, level)
|
84
|
+
|
85
|
+
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
|
86
|
+
|
87
|
+
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
|
88
|
+
|
89
|
+
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
|
90
|
+
|
91
|
+
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
|
92
|
+
|
93
|
+
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
|
94
|
+
|
95
|
+
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
96
|
+
|
97
|
+
File "/var/www/html/wto_web_app/wto_web_app/wsgi.py", line 18, in <module>
|
98
|
+
|
99
|
+
application = get_wsgi_application()
|
100
|
+
|
101
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
|
102
|
+
|
103
|
+
return WSGIHandler()
|
104
|
+
|
105
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/wsgi.py", line 127, in __init__
|
106
|
+
|
107
|
+
self.load_middleware()
|
108
|
+
|
109
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/handlers/base.py", line 37, in load_middleware
|
110
|
+
|
111
|
+
mw_instance = middleware(handler)
|
112
|
+
|
113
|
+
File "/usr/local/lib64/python3.6/site-packages/django/contrib/sessions/middleware.py", line 15, in __init__
|
114
|
+
|
115
|
+
engine = import_module(settings.SESSION_ENGINE)
|
116
|
+
|
117
|
+
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
|
118
|
+
|
119
|
+
return _bootstrap._gcd_import(name[level:], package, level)
|
120
|
+
|
121
|
+
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
|
122
|
+
|
123
|
+
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
|
124
|
+
|
125
|
+
File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
|
126
|
+
|
127
|
+
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
128
|
+
|
129
|
+
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
|
130
|
+
|
131
|
+
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
|
132
|
+
|
133
|
+
File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
|
134
|
+
|
135
|
+
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
136
|
+
|
137
|
+
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
|
138
|
+
|
139
|
+
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
|
140
|
+
|
141
|
+
File "<frozen importlib._bootstrap>", line 941, in _find_and_load_unlocked
|
142
|
+
|
143
|
+
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
|
144
|
+
|
145
|
+
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
|
146
|
+
|
147
|
+
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
|
148
|
+
|
149
|
+
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
|
150
|
+
|
151
|
+
ModuleNotFoundError: No module named 'django.conrtib'
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
The above exception was the direct cause of the following exception:
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
Traceback (most recent call last):
|
160
|
+
|
161
|
+
File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
|
162
|
+
|
163
|
+
self.run()
|
164
|
+
|
165
|
+
File "/usr/lib64/python3.6/threading.py", line 864, in run
|
166
|
+
|
167
|
+
self._target(*self._args, **self._kwargs)
|
168
|
+
|
169
|
+
File "/usr/local/lib64/python3.6/site-packages/django/utils/autoreload.py", line 53, in wrapper
|
170
|
+
|
171
|
+
fn(*args, **kwargs)
|
172
|
+
|
173
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/management/commands/runserver.py", line 137, in inner_run
|
174
|
+
|
175
|
+
handler = self.get_handler(*args, **options)
|
176
|
+
|
177
|
+
File "/usr/local/lib64/python3.6/site-packages/django/contrib/staticfiles/management/commands/runserver.py", line 27, in get_handler
|
178
|
+
|
179
|
+
handler = super().get_handler(*args, **options)
|
180
|
+
|
181
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/management/commands/runserver.py", line 64, in get_handler
|
182
|
+
|
183
|
+
return get_internal_wsgi_application()
|
184
|
+
|
185
|
+
File "/usr/local/lib64/python3.6/site-packages/django/core/servers/basehttp.py", line 50, in get_internal_wsgi_application
|
186
|
+
|
187
|
+
) from err
|
188
|
+
|
189
|
+
django.core.exceptions.ImproperlyConfigured: WSGI application 'wto_web_app.wsgi.application' could not be loaded; Error importing module.
|
190
|
+
|
191
|
+
```
|
192
|
+
|
193
|
+
wsgiは以下の通り定義
|
194
|
+
|
195
|
+
WSGI_APPLICATION = 'hogehoge_app.wsgi.application'
|
196
|
+
|
197
|
+
|
198
|
+
|
57
199
|
### 補足情報(FW/ツールのバージョンなど)
|
58
200
|
|
59
201
|
|
1
一部修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -63,3 +63,7 @@
|
|
63
63
|
Django3.0.8
|
64
64
|
|
65
65
|
CentOS8.2.2004
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
_
|