Django: 'Module' object has no attribute '__file__'

后端 未结 3 770
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-12 00:51

I\'m setting up a new dev environment on a Windows box, and after successfully installing Python and django, I cloned my repository on the new machine.

After running

3条回答
  •  無奈伤痛
    2021-01-12 01:48

    This problem occurs when trying to use application when it's not a Python Package, so make sure your application has __init__.py file in its root directory.

提交回复
热议问题