title: Django forms and passing data between views/pages
body: <p>I am creating a web app and the home page is where the user selects their location. The view for the home page template queries my database for a list of locations and populates a drop down list. After the user hits submit, I validate the form data, and if they picked a valid city (ie. it exists in my database), I want to redirect them to another page that displays deals of the day for that city. My question is based on basic view/form design in Django. How can I pass the city onto the next page? Basically I want to do the following:</p>
  
  <p>Home Page -> submit form -> call method to validate form -> form redirects user to another page</p>
  
  <p>Do I have to create a separate validate view/page for validation? Forms take an action parameter, so I'm guessing I would have to set the action to /validate/, which would call my validate_form() method (through the urls.py file), which would then redirect them to the appropriate page.</p>
  
  <p>I just wanted to run my thoughts by someone before I went ahead and implemented it. Thanks for your time.</p>