]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/pgfulltext/__init__.py
OSQA-828, Support fullname to real_name mapping from OpenID providers
[osqa.git] / forum_modules / pgfulltext / __init__.py
index 20cd35555525a7807bb2c534c9027cc13b66c9fb..05dcb3df7ec7c94760e10808be331e9c29aa8dd3 100644 (file)
@@ -1,10 +1,11 @@
+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