honmaple 8 лет назад
Родитель
Сommit
20dd6c5241
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      config.example

+ 4 - 5
config.example

@@ -6,7 +6,7 @@
 # Author: jianglin
 # Author: jianglin
 # Email: xiyang0807@gmail.com
 # Email: xiyang0807@gmail.com
 # Created: 2016-05-20 12:31:46 (CST)
 # Created: 2016-05-20 12:31:46 (CST)
-# Last Update:星期日 2017-4-2 15:39:4 (CST)
+# Last Update:星期二 2017-5-16 12:26:59 (CST)
 #          By: jianglin
 #          By: jianglin
 # Description:
 # Description:
 # **************************************************************************
 # **************************************************************************
@@ -72,14 +72,13 @@ SUBDOMAIN = {'forums': True, 'docs': True}
 
 
 # Sql
 # Sql
 SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:password@localhost/your_db'
 SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:password@localhost/your_db'
-WHOOSH_BASE = 'search.db'
+
+MSEARCH_INDEX_NAME = 'whoosh_index'
+MSEARCH_BACKEND = 'whoosh'
 # SQLALCHEMY_ECHO = True
 # SQLALCHEMY_ECHO = True
 # SQLALCHEMY_DATABASE_URI = 'sqlite:///test.db'
 # SQLALCHEMY_DATABASE_URI = 'sqlite:///test.db'
 # SQLALCHEMY_DATABASE_URI = 'mysql://username:password@server/db'
 # SQLALCHEMY_DATABASE_URI = 'mysql://username:password@server/db'
 
 
-# avatar upload folder
-AVATAR_FOLDER = 'avatars/'
-
 # Locale
 # Locale
 LANGUAGES = {'en': 'English', 'zh': 'Chinese'}
 LANGUAGES = {'en': 'English', 'zh': 'Chinese'}
 SITE = {'title': 'Honmaple', 'description': '爱生活,更爱自由', 'avatar': ''}
 SITE = {'title': 'Honmaple', 'description': '爱生活,更爱自由', 'avatar': ''}