sh4nks 11 лет назад
Родитель
Сommit
5f80d7e5c7
2 измененных файлов с 7 добавлено и 2 удалено
  1. 5 1
      flaskbb/configs/default.py
  2. 2 1
      flaskbb/configs/production.py.example

+ 5 - 1
flaskbb/configs/default.py

@@ -36,7 +36,8 @@ class DefaultConfig(object):
     # Default Database
     # Default Database
     SQLALCHEMY_DATABASE_URI = 'sqlite:///' + _basedir + '/' + \
     SQLALCHEMY_DATABASE_URI = 'sqlite:///' + _basedir + '/' + \
                               'flaskbb.sqlite'
                               'flaskbb.sqlite'
-    # sqlite for testing/debug.
+
+    # This will print all SQL statements
     SQLALCHEMY_ECHO = False
     SQLALCHEMY_ECHO = False
 
 
     # Security
     # Security
@@ -48,6 +49,9 @@ class DefaultConfig(object):
     WTF_CSRF_ENABLED = True
     WTF_CSRF_ENABLED = True
     WTF_CSRF_SECRET_KEY = "reallyhardtoguess"
     WTF_CSRF_SECRET_KEY = "reallyhardtoguess"
 
 
+    # Searching
+    WHOOSH_BASE = os.path.join(_basedir, "whoosh_index")
+
     # Auth
     # Auth
     LOGIN_VIEW = "auth.login"
     LOGIN_VIEW = "auth.login"
     REAUTH_VIEW = "auth.reauth"
     REAUTH_VIEW = "auth.reauth"

+ 2 - 1
flaskbb/configs/production.py.example

@@ -33,7 +33,8 @@ class ProductionConfig(DefaultConfig):
 
 
 
 
     ## Caching
     ## Caching
-    # See the Flask-Cache docs for more caching types
+    # For all available caching types, take a look at the Flask-Cache docs
+    # https://pythonhosted.org/Flask-Cache/#configuring-flask-cache
     CACHE_TYPE = "simple"
     CACHE_TYPE = "simple"
     CACHE_DEFAULT_TIMEOUT = 60
     CACHE_DEFAULT_TIMEOUT = 60