Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Three small changes in documentation #34

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cookbook/subapp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: default
title: using subapplications
---

# using subapplications
# Using subapplications

Other languages [français](/../cookbook/subapp/fr) | ...

Expand All @@ -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
Expand All @@ -46,4 +48,4 @@ In your main `code.py`:
app = web.application(urls, locals())

if __name__ == "__main__":
app.run()
app.run()
2 changes: 1 addition & 1 deletion docs/0.3/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ and change the definition of `index.GET` to:

and delete the line setting name. Now visit `/Joe` and it should say hello to Joe.

If you wish to learn more about web.py templates, vist the <a href="/docs/0.3/templetor">templetor page</a>.
If you wish to learn more about web.py templates, visit the <a href="/docs/0.3/templetor">templetor page</a>.

<a name="forms"> </a>
## Forms
Expand Down
4 changes: 3 additions & 1 deletion form.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ The form module defines 2 primary classes: the Form class, and the Input class.

A basic login form would look like this:

from web import form

login = form.Form(
form.Textbox('username'),
form.Password('password'),
Expand Down Expand Up @@ -158,4 +160,4 @@ And sample formtest.html (place this in the *templates* subdirectory):
<form name="main" method="post">
$if not form.valid: <p class="error">Try again, AmeriCAN:</p>
$:form.render()
<input type="submit" /> </form>
<input type="submit" /> </form>