Django encountered could not import settings’ conf.local ‘when configuring settings

Time:2021-11-20

I won’t say the original
Examples:

Django best practices and deployment: nginx + gunicorn + Supervisor (Ubuntu and CentOS)

http://sfdye.com/articles/django-best-practice-and-deployment-with-nginx-gunicorn-and-supervisor/

As a result, an error appears when runserver — settings =… Appears. Could not import settings’ conf.local ‘(is it on sys. Path? Is there an import error in the settings file?): n
o module named conf.local

It’s strange that I can’t find it after adjustment
Finally, I found that it was this evil again

init.py
You must create this empty file in the self built folder before it can be scanned as a module by Django