title: django: replace patterns (deprecated)
body: <p>patterns has been deprecated in django 1.1 and there's this line I use to share media files in development in urls.py</p>
  
  <pre><code>urlpatterns = [
      ...
  ]
  </code></pre>
  
  <p>after the patterns</p>
  
  <pre><code>if settings.DEBUG :
      #urlpatterns += patterns('',
      #    (r'^media/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
      #)
      urlpatterns.append(
          url(r'^media/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
      )
  </code></pre>
  
  <p>the commented part is the old part, my attempt is getting me this error</p>
  
  <pre><code>  File "/home/samuel/Documents/code/revamp/revamp/urls.py", line 92, in &lt;module&gt;
      url(r'^media/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
    File "/usr/local/lib/python2.7/dist-packages/django/conf/urls/__init__.py", line 85, in url
      raise TypeError('view must be a callable or a list/tuple in the case of include().')
  TypeError: view must be a callable or a list/tuple in the case of include().
  </code></pre>