Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Change signup.html to /signup #2

Merged
merged 1 commit into from

1 participant

@Ivoz
Owner

Reflecting changes in the tutorial repo

@Ivoz Ivoz merged commit ae637ac into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 11, 2013
  1. @Ivoz

    Change signup.html to /signup

    Ivoz authored
This page is out of date. Refresh to see the latest.
View
2  core/data/catseverywhere.py
@@ -11,7 +11,7 @@
def hello_world():
return render_template('index.html')
-@app.route('/signup.html', methods = ['POST'])
+@app.route('/signup', methods = ['POST'])
def signup():
email = request.form['email']
email_addresses.append(email)
View
2  core/data/templates/index.html
@@ -50,7 +50,7 @@
<div id="banner">
<h1>cats everywhere</h1>
<p class="lead">We're bringing cats to the internet. Free. Cute. Awesome.</p>
- <form action="signup.html" method="post">
+ <form action="/signup" method="post">
<input type="text" name="email"></input>
<input type="submit" value="Signup"></input>
</form>
View
2  core/form-submission/catseverywhere.py
@@ -8,7 +8,7 @@
def hello_world():
return render_template('index.html')
-@app.route('/signup.html', methods = ['POST'])
+@app.route('/signup', methods = ['POST'])
def signup():
email = request.form['email']
print("The email address is '" + email + "'")
View
2  core/form-submission/templates/index.html
@@ -50,7 +50,7 @@
<div id="banner">
<h1>cats everywhere</h1>
<p class="lead">We're bringing cats to the internet. Free. Cute. Awesome.</p>
- <form action="signup.html" method="post">
+ <form action="/signup" method="post">
<input type="text" name="email"></input>
<input type="submit" value="Signup"></input>
</form>
Something went wrong with that request. Please try again.