title: 404 when enabling admin with Django
body: <p>I had correctly configured a Django app and had it running smoothly. However, when I went to enable the administration panel, I encountered a 404 error upon uncommenting this line:</p>
  
  <p><code>url(r'^admin/', include(admin.site.urls))</code></p>
  
  <p>Upon trying to access my site, I received this:</p>
  
  <pre><code>Using the URLconf defined in cms.urls, Django tried these URL patterns, in this order:
  
      1. ^admin/
  
  The current URL, , didn't match any of these.
  </code></pre>
  
  <p>I can't figure out how to get around this error. Does anyone with some Django experience have a solution? Thanks!</p>
  
  <p>EDIT: Here is the entire <code>urls.py</code> file:</p>
  
  <pre><code>from django.conf.urls.defaults import patterns, include, url
  
  # Uncomment the next two lines to enable the admin:
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      # Examples:
      # url(r'^$', 'cms.views.home', name='home'),
      # url(r'^cms/', include('cms.foo.urls')),
  
      # Uncomment the admin/doc line below to enable admin documentation:
      # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
  
      # Uncomment the next line to enable the admin:
      url(r'^admin/', include(admin.site.urls)),
  )
  </code></pre>