title: Django: Passing data to view from url dispatcher without including the data in the url?
body: <p>I've got my mind set on dynamically creating URLs in Django, based on names stored in database objects. All of these pages should be handled by the same view, but I would like the database object to be passed to the view as a parameter when it is called. Is that possible? </p>
  
  <p>Here is the code I currently have:</p>
  
  <pre><code>places = models.Place.objects.all()
  for place in places: 
      name = place.name.lower()
      urlpatterns += patterns('',
          url(r'^'+name +'/$', 'misc.views.home', name='places.'+name)
      )
  </code></pre>
  
  <p>Is it possible to pass extra information to the view, without adding more parameters to the URL? Since the URLs are for the root directory, and I still need 404 pages to show on other values, I can't just use a string parameter. Is the solution to give up on trying to add the URLs to root, or is there another solution?</p>
  
  <p>I suppose I could do a lookup on the name itself, since all URLs have to be unique anyway. Is that the only other option?</p>