diff manage.py @ 55:494f3c4660ed

Various changes: - Debug Flask app is also serving wiki assets (images, etc.) in `/files`. - Now using Mustache to render pages when there are template parameters. - Added a more user-friendly error message for circular includes. - Fixed initialization problems where the wiki would always initially use the default Flask logger before we got a change to configure it. - Fixed some problems with queries.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 04 Feb 2013 21:19:10 -0800
parents 8167b9b6925a
children 13249e5ca51c
line wrap: on
line diff
--- a/manage.py	Sat Feb 02 20:16:54 2013 -0800
+++ b/manage.py	Mon Feb 04 21:19:10 2013 -0800
@@ -2,6 +2,7 @@
 # Configure a simpler log format.
 from wikked import settings
 settings.LOG_FORMAT = "[%(levelname)s]: %(message)s"
+settings.UPDATE_WIKI_ON_START = False
 
 # Create the app and the wiki.
 from wikked.web import app, wiki
@@ -65,8 +66,9 @@
 def get(url):
     """ Gets a page that matches the given URL.
     """
-    page = wiki.getPage(url)
-    print page.text
+    with conn_scope(wiki.db):
+        page = wiki.getPage(url)
+        print page.text
 
 
 if __name__ == "__main__":