ImportError: Couldn't import Django

前端 未结 22 1970
无人共我
无人共我 2020-12-05 01:59

I\'ve already configured virtualenv in pycharm, when using the python manage.py command, this is error shown:

E:\\video course\\Python\\code\\web_worker\\MxO         


        
22条回答
  •  我在风中等你
    2020-12-05 02:42

    Instead of creating a new virtual environment, you just have to access to your initially created virtual environment when you started the project.

    You just have to do the following in your command line:

    1)pipenv shell to access the backend virtual environment that you have initially created.

    2) Then, python manage.py runserver

    Let me know if it works for you or not.

提交回复
热议问题