Django error when installing Graphite - settings.DATABASES is improperly configured. Please supply the ENGINE value


I am trying to install GRAPHITE on ubuntu. I follow the instructions in the blog.

When I get to the part where I run the command..I get the below error. I have zero clue on how to resolve. I am using the lastest version of Django 1.4.

cd /opt/graphite/webapp/graphite/
sudo python syncdb

sudo python syncdb
/opt/graphite/webapp/graphite/thirdparty/pytz/ UserWarning: Module pytz was already imported from /opt/graphite/webapp/graphite/thirdparty/pytz/__init__.pyc, but /usr/local/lib/python2.7/dist-packages/pytz-2012b-py2.7.egg is being added to sys.path
  from pkg_resources import resource_stream
Traceback (most recent call last):
  File "", line 11, in <module>
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/", line 459, in execute_manager
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/", line 382, in execute
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/", line 232, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/", line 371, in handle
    return self.handle_noargs(**options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/", line 57, in handle_noargs
    cursor = connection.cursor()
  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/dummy/", line 15, in complain
    raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.

In the /opt/graphite/webapp/graphite/ file, this is the contents.

#Database settings, sqlite is intended for single-server setups
DATABASE_ENGINE = 'sqlite3'                     # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = STORAGE_DIR + 'graphite.db'     # Or path to database file if using sqlite3.
DATABASE_USER = ''                              # Not used with sqlite3.
DATABASE_PASSWORD = ''                          # Not used with sqlite3.
DATABASE_HOST = ''                              # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ''                              # Set to empty string for default. Not used with sqlite3.

DASHBOARD_CONF = join(CONF_DIR, 'dashboard.conf')
GRAPHTEMPLATES_CONF = join(CONF_DIR, 'graphTemplates.conf')
3/24/2012 4:21:29 PM

graphite version 0.9.10 supports Django 1.4... however they put the sqlite settings in django's

[mpenning@tsunami graphite]$ cat|grep -v \#
    'default': {
        'NAME': '/opt/graphite/storage/graphite.db',
        'ENGINE': 'django.db.backends.sqlite3',
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': ''
[mpenning@tsunami graphite]$
[mpenning@tsunami graphite]$ pwd
[mpenning@tsunami graphite]$
9/26/2012 1:25:51 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow