+from forum.base import get_database_engine
+database_type = get_database_engine()
+
NAME = 'Postgresql Full Text Search'
DESCRIPTION = "Enables PostgreSql full text search functionality."
try:
import psycopg2
- from django.conf import settings
- CAN_USE = settings.DATABASE_ENGINE in ('postgresql_psycopg2', 'postgresql', )
+ CAN_USE = 'postgresql' in database_type
except:
CAN_USE = False
-
\ No newline at end of file