-NAME = 'Postgresql Full Text Search'\r
-DESCRIPTION = "Enables PostgreSql full text search functionality."\r
-\r
-try:\r
- import psycopg2\r
- CAN_ENABLE = True\r
-except:\r
- CAN_ENABLE = False\r
+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', )
+except:
+ CAN_USE = False
\ No newline at end of file