ImportError: Couldn't import Django

前端 未结 22 1912
无人共我
无人共我 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:53

    When you install Django on your computer all things go fine but when you install a Virtual environment it gets separated from all things. You will know it's importance when you will make a final project and deploy it to any cloud or hosting.

    Just reinstall Django in the virtual environment and baam:

    pip install Django
    

    and then just run the command for testing:

    python manage.py runsever
    

    and you are all done.

提交回复
热议问题