- Hello Forms
- HTML Forms 1
- HTML Forms 2
- HTML Forms 3
- Validating With Django Forms
- Rendering Django Forms
- Validating Related Fields
In this exercise you will create a project that completes a task similar to the original "Functions over HTTP" exercise, but this time you will implement use a template and process the user input with a Django Form (no path parameters!).
- Hey You: Your app should respond with
Hey, <name>!when a request is made to/hey/<name>. For example, a request to/hey/bccashould respond withHey, BCCA!.- How Old: Your app should respond with a user's age in some provided end year when a request is made to
/age-in/<end>/<birthyear>. For example/age-in/2050/2000should respond with50. Your path should appropriately indicate that theendandbirthyearpath arguments are integers.- Can I Take Your Order: Your app should respond with an order total for a provided number of hamburgers, fries, and drinks when a request is made to
/order-total/<burgers>/<fries>/<drinks>. Burgers are $4.50. Fries are $1.5. Drinks are $1. Your path should appropriately indicate that theburgers,fries, anddrinkspath arguments are integers.
In this exercise you will create a project that completes a task similar to the original "Codingbat over HTTP" exercise, but this time you will implement use a template and process the user input with a Django Form (no path parameters!).
For each of the paths bases below, implement the corresponding codingbat challenge as a view. I've created a codingbat_over_http directory for you to create your project/app in. Arguments should be collected from the path and the response should contain the answer to the challenge. Additionally, you should implement three of the test cases that coding bat provides as test cases in your django app.
warmup-2/font-times/...implemented with 3 test cases.logic-2/no-teen-sum/...implemented with 3 test cases.string-2/xyz-there/...implemented with 3 test cases.list-2/centered-average/...implemented with 3 test cases.
You will be asked to create a django project that accomplishes a task similar to the "Codingbat Over HTTP (with Forms!)" exercise.