Permalink
Browse files

Added note for WSGI deployments.

  • Loading branch information...
1 parent e5b1838 commit 93fc740ab5c47dc6c66bef3580f3ad31de63fe16 @marios-zindilis marios-zindilis committed Jul 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 cookbook/subapp.md
View
@@ -3,7 +3,7 @@ layout: default
title: using subapplications
---
-# using subapplications
+# Using subapplications
Other languages [français](/../cookbook/subapp/fr) | ...
@@ -30,6 +30,8 @@ In `blog.py`:
app_blog = web.application(urls, locals())
+Note that if you are using WSGI, you must not append `.wsgifunc()` to any of the app definitions, only to the main `code.py`.
+
In your main `code.py`:
import web
@@ -46,4 +48,4 @@ In your main `code.py`:
app = web.application(urls, locals())
if __name__ == "__main__":
- app.run()
+ app.run()

0 comments on commit 93fc740

Please sign in to comment.