WSGI application ‘XXX.wsgi.application‘ could not be loaded; Error importing module.解决
在python manage.py runserver时提示如下错误,File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_innerself.run()File "/usr/lib64/python3.6/threading.py", line 864, in runself._target(*self._args,
在python manage.py runserver 时提示如下错误,
File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/home/manager/.virtualenvs/h4/lib/python3.6/site-packages/django/utils/autoreload.py", line 53, in wrapper
fn(*args, **kwargs)
File "/home/manager/.virtualenvs/h4/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 138, in inner_run
handler = self.get_handler(*args, **options)
File "/home/manager/.virtualenvs/h4/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/runserver.py", line 27, in get_handler
handler = super().get_handler(*args, **options)
File "/home/manager/.virtualenvs/h4/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 65, in get_handler
return get_internal_wsgi_application()
File "/home/manager/.virtualenvs/h4/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 50, in get_internal_wsgi_application
) from err
django.core.exceptions.ImproperlyConfigured: WSGI application 'test1.wsgi.application' could not be loaded; Error importing module.
网络上拼写错误说的比较多,但没有解决这个问题。
后来修改setting里面的配置解决,具体方法请见www.mihaoyun.com
更多推荐
所有评论(0)