Why am I getting this error in Django?

后端 未结 6 2117
暗喜
暗喜 2021-02-01 06:25

I have a script that imports a models.py from an app, but it will not import! I don\'t believe I am supposed to manually create an \"export DJANGO...\" environment variable...I\

6条回答
  •  故里飘歌
    2021-02-01 06:39

    I had this similar error, and I realized that I forgot to create the file "init.py" in to the app folder:

    myapp:
        manage.py
        myapp:
            __init__.py
            settings.py
            ....
    

提交回复
热议问题