0

I am following Graphite tutorial to install graphite on my Ubuntu system, as soon as I try to run this command

$sudo graphite-manage syncdb

this exception is thrown

django.core.exceptions.ImproperlyConfigured:django.db.backends.postgresql_psycopg2 isnot an available database backend.Try using django.db.backends.XXX, where XXX is one of:ubase, umysql, uoracle, usqlite3 Error was: No module named postgresql_psycopg2.base

I did some search to find out the cause and tried this but its still persisting, can anybody help please

Community
  • 1
  • 1
Sayim Khan
  • 82
  • 10

1 Answers1

1

You have a spelling mistake in your settings.py, it should be

'ENGINE': 'django.db.backends.postgresql_psycopg2'

but in your file it is

'ENGINE': 'Django.db.backends.postgresql_psycopg2'

Fix the typo and things will work.

Burhan Khalid
  • 169,990
  • 18
  • 245
  • 284
  • no its correct, i just copied wrong error msg, property is like ` 'ENGINE': 'django.db.backends.postgresql_psycopg2', ` – Sayim Khan Apr 13 '17 at 06:14
  • error msg: django.core.exceptions.ImproperlyConfigured: 'django.db.backends.postgresql_psycopg2' isn't an available database backend. Try using 'django.db.backends.XXX', where XXX is one of: u'base', u'mysql', u'oracle', u'sqlite3' Error was: No module named postgresql_psycopg2.base – Sayim Khan Apr 13 '17 at 06:16