ImportError: Couldn't import Django

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

    Looks like you have not activated your virtualenv when using the runserver command.

    Windows: \Scripts\activate.bat

    Linux: source \bin\activate

    You should see (name of virtualenv) as a prefix to your current directory:

    (virtualenv) E:\video course\Python\code\web_worker\MxOnline>python manage.py runserver
    

提交回复
热议问题