title: how to pass query strings in urls.py with ?key=value& in django
body: <p>In the django docs it is noted that:</p>
  
  <blockquote>
    <p>Now in your time on the web you may have come across such beauties as “ME2/Sites/dirmod.asp?sid=&amp;type=gen&amp;mod=Core+Pages&amp;gid=A6CD4967199A42D9B65B1B”. You will be pleased to know that Django allows us much more elegant URL patterns than that.</p>
  </blockquote>
  
  <p>However, I am trying to pass through query strings with this pattern in mind. How might one go about passing key=value pairs as so inside of django's urls.py </p>
  
  <p>Also note that this is for project using Angular and Django together.</p>
  
  <p>currently my angular patterns are coming out in query string
  I.E. <a href="http://localhost/data/?key1=value1&amp;key2=value2" rel="nofollow noreferrer">http://localhost/data/?key1=value1&amp;key2=value2</a></p>
  
  <p>If you have any further detail on how to handle $http.post, I will take in any advice. </p>
  
  <p>UPDATE:</p>
  
  <p>Here is my VIEWS.PY</p>
  
  <pre><code>#THREE PARAMETERS: storyElementName, facet, variants(can be multiple)
  def storyElements_getOrCreate(request, storyElementName, facet, variants):
  contData = lsContinuityData.ContinuityData()
  if request.method == "POST":
      storyElementName = request.POST.get("storyElementName")
      facet = request.POST.get("facet")
      for key in request.POST:
          variants = request.POST.getlist("variants")
      storyElement = contData.storyElement(storyElementName, facet=facet, variants=variants)
      return HttpResponse(json.dumps(storyElementName, facet, variants), content_type="application/json")
  else:
      storyElementGroups = contData.getStoryElements()
      if len(storyElementGroups):
          storyElements = [storyElement.toJSON() for storyElement in storyElementGroups]
          return HttpResponse(json.dumps(storyElements), content_type="application/json")
  </code></pre>
  
  <p>here is my angular controller</p>
  
  <pre><code>function addStoryElement(storyElementName, facet, variants){
      seParams = {storyElementName: vm.storyElementName, facet: vm.facet, variants: vm.variants}
      $http({
          url: 'http://localhost:8000/lsContinuity/storyelements/',
          method: "POST",
          params: seParams
      })
  </code></pre>
  
  <p>Hopefully this is a bit more helpful. I am passing multiple parameters, however, I might be doing this wrong. </p>