在settings.py文件中:

import sys

Build paths inside the project like this: os.path.join(BASE_DIR, …)

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(BASE_DIR, ‘apps’))

迁移报错:
Django2.0之将所有的app放到apps中路径配置

解决方案:
Django2.0之将所有的app放到apps中路径配置
将其中的代码多余的apps.去掉,完美解决!

相关文章:

  • 2021-06-28
  • 2021-06-28
  • 2021-12-03
  • 2022-02-05
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-01-12
  • 2021-08-01
相关资源
相似解决方案