Question

I am setting up graphite on ubuntu 13. I uncommented the sqlite3 option from the local_settings.py file in /opt/graphite/webapp/graphite and tried running the syncdb command but observed the following error:

File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 152, in __init__
    raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty. 

Should I simply setup credentials for sqlite3 or is the issue related to some other misconfiguration. Thanks!

Update: Unless I am mistaken - A username/password is not supported by the sqlite/sqlite3 package.

Was it helpful?

Solution

the following seems to have solved the issue for me:

I added the secret key in the app_settings.py file in /opt/graphite/webapps/graphite. I was able to add a superuser (after running syncdb after that).

OTHER TIPS

You have to add

SECRET_KEY = 'some_random_secret_string'

to your django settings file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top