X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/22236fb67da2f27ceb35ad138f4d534a4fd08251..cdf6f5f965021228d2a411d23726eda56db0b5a7:/forum_modules/mysqlfulltext/__init__.py?ds=sidebyside diff --git a/forum_modules/mysqlfulltext/__init__.py b/forum_modules/mysqlfulltext/__init__.py index ff2463f..5591015 100644 --- a/forum_modules/mysqlfulltext/__init__.py +++ b/forum_modules/mysqlfulltext/__init__.py @@ -1,10 +1,14 @@ +from forum.base import get_database_engine +database_type = get_database_engine() + NAME = 'Mysql Full Text Search' DESCRIPTION = "Enables Mysql full text search functionality." try: import MySQLdb - from django.conf import settings - CAN_USE = settings.DATABASE_ENGINE == 'mysql' -except: + import settings_local + CAN_USE = 'mysql' in database_type +except Exception, e: + import traceback + traceback.print_exc() CAN_USE = False - \ No newline at end of file