我正在尝试在本地计算机上的pycharm上设置远程django服务器。我遇到的问题是我收到此错误: - " ImportError:没有名为settings"的模块。我在pycharm中给出了所有正确的服务器配置。当我从服务器运行相同的,它完全正常。在此之前我使用Sublime Text并且一切正常,但由于我想要断点并在本地运行远程服务器,我转向了完整版的Pycharm。如果有人知道这里有什么问题,请帮帮我!!
根路径: - / root / workspace /
服务器上的部署路径: - / netadc
控制台O / P: -
ssh://appviewx@x.x.x.x:x/root/.venvs/netadc/bin/python -u /root/workspace/netadc/manage.py runserver x.x.x.x:x Traceback (most recent call last): File "/root/workspace/netadc/manage.py", line 10, in <module>
execute_from_command_line(sys.argv) File "/root/.venvs/netadc/lib/python2.7/site-packages/Django-1.8.15-py2.7.egg/django/core/management/__init__.py", line 303, in execute
settings.INSTALLED_APPS File "/root/.venvs/netadc/lib/python2.7/site-packages/Django-1.8.15-py2.7.egg/django/conf/__init__.py", line 48, in __getattr__
self._setup(name) File "/root/.venvs/netadc/lib/python2.7/site-packages/Django-1.8.15-py2.7.egg/django/conf/__init__.py", line 44, in _setup
self._wrapped = Settings(settings_module) File "/root/.venvs/netadc/lib/python2.7/site-packages/Django-1.8.15-py2.7.egg/django/conf/__init__.py", line 92, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name) ImportError: No module named settings
Process finished with exit code 1