ImportError: Could not import settings

前端 未结 6 1006
一生所求
一生所求 2020-12-03 01:11

I am trying to develop an sample project in Django and getting errors when I run the syncdb command.

This is how my project structure looks like:

/Users/djan

6条回答
  •  没有蜡笔的小新
    2020-12-03 01:25

    ImportError: Could not import settings 'settings' (Is it on sys.path? Is there an import error in the settings file?): No module named setting

    In my case I was using __init__.py to import other files and there was an error in it, so settings might actually exist but be flawed.

提交回复
热议问题