diff --git a/docs/index.rst b/docs/index.rst
index e4a571143e0902aa9501a7f21e7ca4cdd8b9c3af..1c85f1dff99bb0f98f0617d7c7ecd7b363200da5 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -41,6 +41,10 @@ required configuration options:
     @ldap.login_required
     def ldap_protected():
         return 'Success!'
+    
+    
+    if __name__ == '__main__':
+        app.run()
 
 
 Configuration