How do I stop getting ImportError: Could not import settings 'mofin.settings' when using django with wsgi?

前端 未结 15 1963
渐次进展
渐次进展 2020-12-04 11:15

I can\'t get wsgi to import my settings file for my project \'mofin\'.

The list of errors from the apache error log are as follows

mod_wsgi (pid=4001         


        
15条回答
  •  再見小時候
    2020-12-04 11:44

    Let me add and my experience for that issue. After head banging for few hours and try all from the above answers I found that few lines in settings.py file cause the problem:

    from south.modelsinspector import add_introspection_rules
    add_introspection_rules([], ["^dynamicsites.fields.FolderNameField"])
    add_introspection_rules([], ["^dynamicsites.fields.SubdomainListField"])
    

    After that I made copy of the settings.py, named scripts_settings.py whithout that lines, and used that file and everything is ok now.

提交回复
热议问题