title: How to use Django admin interface to show uploaded files decently?
body: <p>I'm bulding my new Django app. It's in the very beginning stages. So right now I'm just concentrating on the designing the data models. Forms, views, templates, front-end-AJAX etc will all come later. I'm using the Django Admin interface to create and view dummy model objects.</p>
  
  <p>I have a model with an ImageField attribute. Using the admin interface, I'm able upload a file called taco.jpg to this model. I can go into the file system and see that this file has been successfully uploaded. It's file path also shows up in the admin interface:</p>
  
  <p><img src="https://i.stack.imgur.com/xzdbl.png" alt="enter image description here"></p>
  
  <p>However, when I click that link, it produces an error because there is no route specified to that file in urls.py:</p>
  
  <p><img src="https://i.stack.imgur.com/Lqboa.png" alt="enter image description here"></p>
  
  <p><strong>How do I make it so that whenever I upload a file, route to it is automatically added in urls.py? 
  And how do I make it so that a thumbnail of the photo appears in the drilldown view in the admin interface (and if I click on that thumbnail, the full size image should display)</strong></p>
  
  <p>Here is my urls.py file:</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  from django.contrib import admin
  admin.autodiscover()
  urlpatterns = patterns('',
      url(r'^admin/', include(admin.site.urls)),
  )
  </code></pre>
  
  <p>Here is my data model:</p>
  
  <pre><code>class Photo(models.Model):
      image = models.ImageField(null=True, upload_to='documents/%Y/%m/%d')
  </code></pre>
  
  <p>And here is Admin file:</p>
  
  <pre><code>class PhotoAdmin(admin.ModelAdmin):
      fields = ["image",]
      list_display = ("image",)
  admin.site.register(Photo, PhotoAdmin)
  </code></pre>