You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
执行命令python manage.py runserver 127.0.0.1 8080不成功,提示错误ImportError: No module named web.settings。
在网上查找了一些解决方法,比如在wsgi.py 中添加下列语句:
path = os.path.dirname(os.path.dirname(os.path.abspath(file)))
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings'
但还是存在该问题。
The text was updated successfully, but these errors were encountered:
执行命令python manage.py runserver 127.0.0.1 8080不成功,提示错误ImportError: No module named web.settings。
在网上查找了一些解决方法,比如在wsgi.py 中添加下列语句:
path = os.path.dirname(os.path.dirname(os.path.abspath(file)))
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings'
但还是存在该问题。
执行命令python manage.py runserver 127.0.0.1 8080不成功,提示错误ImportError: No module named web.settings。
在网上查找了一些解决方法,比如在wsgi.py 中添加下列语句:
path = os.path.dirname(os.path.dirname(os.path.abspath(file)))
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings'
但还是存在该问题。
The text was updated successfully, but these errors were encountered: