0
我最近重命名了項目及其應用程序。當我通過Windows命令行運行開發服務器時,它可以正常工作。問題是,當我運行通過PyCharm(我設置的virtualenv)服務器,它說(我最近安裝django-allauth
):PyCharm控制檯 - 無模塊名爲
Unhandled exception in thread started by <function wrapper at 0x03767B30>
Traceback (most recent call last):
File "C:\Users\Milano\Desktop\Projekty\venvs\sflvenv\lib\site-packages\django\utils\autoreload.py", line 229, in wrapper
fn(*args, **kwargs)
File "C:\Users\Milano\Desktop\Projekty\venvs\sflvenv\lib\site-packages\django\core\management\commands\runserver.py", line 107, in inner_run
autoreload.raise_last_exception()
File "C:\Users\Milano\Desktop\Projekty\venvs\sflvenv\lib\site-packages\django\utils\autoreload.py", line 252, in raise_last_exception
six.reraise(*_exception)
File "C:\Users\Milano\Desktop\Projekty\venvs\sflvenv\lib\site-packages\django\utils\autoreload.py", line 229, in wrapper
fn(*args, **kwargs)
File "C:\Users\Milano\Desktop\Projekty\venvs\sflvenv\lib\site-packages\django\__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\Milano\Desktop\Projekty\venvs\sflvenv\lib\site-packages\django\apps\registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "C:\Users\Milano\Desktop\Projekty\venvs\sflvenv\lib\site-packages\django\apps\config.py", line 86, in create
module = import_module(entry)
File "c:\python27\Lib\importlib\__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named allauth
我做了什麼:
- 全部換成新名稱的應用程序,項目也是如此。
- 刪除.idea文件夾以使PyCharm創建新的新。
- 集VIRTUALENV
我應該怎麼做才能讓工作?