Closed ichilton closed 11 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I guess this is related to https://bugs.debian.org/995461 where a fix is suggested: os.environ.setdefault('GRAPHITE_SETTINGS_MODULE', 'local_settings')
For me, this works so far.
Describe the bug
I'm unable to get graphite-web to find local_settings.py. It's supposed to use: /etc/graphite/local_settings.py and /usr/lib/python3/dist-packages/graphite/settings.py does contain:
... but it's just unable to find it.
I've spent a few hours poking around trying to work out why, but i've not as yet been able to get to the bottom of it.
It just seems not to be looking for it in the right place. It gives that warning whether it's there or not, i've tried dropping the example one in and just changing SECRET_KEY and tried putting symlinks in all kinds of paths where it might go looking for it, but nothing.
To Reproduce
Install with
apt-get install graphite-web gunicorn
Edit /etc/graphite/local_settings.py and change SECRET_KEY
Attempt to load with gunicorn:
gunicorn graphite.wsgi --pythonpath=/usr/share/graphite-web --bind 127.0.0.1:8080
.Expected behavior
It should read /etc/graphite/local_settings.py and set the SECRET_KEY.
Environment (please complete the following information):
python3 3.9.2-3 python3-django 2:2.2.28-1~deb11u1
OS packages.