title: Expecting the text entered in the searchbox to be printed on the results page
body: <p>views.py</p>
  
  <pre><code>    from weatherbot.models import Question
      from django.template import RequestContext
      from django.shortcuts import render_to_response
  
      def search(request):
          query = request.GET.get('q')
          if query:
              results = query
          context = RequestContext(request)
          return render_to_response('results.html', {"results": results,}, context_instance=context)
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>    from django.conf.urls import url
      from . import views
  
      urlpatterns = [ 
  url(r'^search/$', views.search, name = 'Ask for Weather Updates'),]
  </code></pre>
  
  <p>search.html</p>
  
  <pre><code>    &lt;form method="get" action="/search/"&gt;
       Search Notecards:&lt;input type="text" name="q" id="id_q" value="{{ query }}"/&gt;
      &lt;input type="submit" value="Search" /&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>result.html</p>
  
  <pre><code>    {% if results %}
        {% for result in results %}
          {{ result.xxxx }}
        {% endfor %}
      {% else %}
      &lt;h3 class='error'&gt;Please enter a valid UID&lt;/h3&gt;
      &lt;form method="get" action="//"&gt;
       Search Notecards:&lt;input type="text" name="q" id="id_q" value="{{ query }}"/&gt;
      &lt;input type="submit" value="Search" /&gt;
      &lt;/form&gt;
      {% endif %}
  </code></pre>
  
  <p>What i am trying to do is to first enter a question in the searchbox and then display it in the results page using django</p>