old_contents: from django.conf.urls import patterns, include, url
  from django.contrib import admin
  from django.conf import settings
  from django.conf.urls.static import static
  
  urlpatterns = patterns('',
      # Examples:
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
      url(r'^accounts/', include('registration.backends.default.urls')),
      url(r'^$', 'imager.views.home', name='home'),
  ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
new_contents: from django.conf.urls import patterns, include, url
  from django.contrib import admin, auth
  from django.conf import settings
  from django.conf.urls.static import static
  
  urlpatterns = patterns('',
      # Admin Routes
      url(r'^admin/', include(admin.site.urls)),
  
      # Reg Routes
      url(r'^accounts/', include('registration.backends.default.urls')),
      url(r'^login/', auth.views.login, name='login'),
      url(r'^logout/', auth.views.login, name='logout'),
  
      # Main Routes
      url(r'^$', 'imager.views.home', name='home'),
  
  ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  
subject: Add login/logout url routes