【问题标题】:python manage.py migrate on terminal then error show?python manage.py 在终端上迁移然后显示错误?
【发布时间】:2019-11-08 08:02:55
【问题描述】:
Traceback (most recent call last):
  File "manage.py", line 16, in <module>
    "Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

【问题讨论】:

标签: python django python-3.x database migration


【解决方案1】:

了解PYTHONPATH的好文章:https://bic-berkeley.github.io/psych-214-fall-2016/using_pythonpath.html

export PYTHONPATH="$PYTHONPATH:/home/user/work/your_django_project"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-12-12
    • 2019-01-23
    • 1970-01-01
    • 2021-07-23
    • 1970-01-01
    • 1970-01-01
    • 2015-02-02
    • 1970-01-01
    相关资源
    最近更新 更多