Domanda

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.

È stato utile?

Soluzione

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).

Altri suggerimenti

You have to add

SECRET_KEY = 'some_random_secret_string'

to your django settings file.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top