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
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.