X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..bbe7372ee20e936423bf68f7874e27a6cecb055c:/forum_modules/pgfulltext/__init__.py diff --git a/forum_modules/pgfulltext/__init__.py b/forum_modules/pgfulltext/__init__.py index 20cd355..05dcb3d 100644 --- a/forum_modules/pgfulltext/__init__.py +++ b/forum_modules/pgfulltext/__init__.py @@ -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