old_contents: from django.conf.urls import patterns, include, url
  from django.contrib import admin
  from login.views import *
  
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.conf import settings
  from django.conf.urls.static import static
  
  urlpatterns = patterns('',
      # Examples:
      # url(r'^$', 'socialdistribution.views.home', name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
  
  	url(r'^$', 'django.contrib.auth.views.login'),
      url(r'^logout/$', logout_page),
      url(r'^accounts/login/$', 'django.contrib.auth.views.login'), # If user is not login it will redirect to login page
      url(r'^register/$', register),
      url(r'^register/success/$', register_success),
      url(r'^home/$', home),
  )
  
  urlpatterns += staticfiles_urlpatterns()
  
new_contents: from django.conf.urls import patterns, include, url
  from django.contrib import admin
  from login.views import *
  
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  from django.conf import settings
  from django.conf.urls.static import static
  
  urlpatterns = patterns('',
      # Examples:
      # url(r'^$', 'socialdistribution.views.home', name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
      url(r'^friends/', include('author.urls')),
  	url(r'^$', 'django.contrib.auth.views.login'),
      url(r'^logout/$', logout_page),
      url(r'^accounts/login/$', 'django.contrib.auth.views.login'), # If user is not login it will redirect to login page
      url(r'^register/$', register),
      url(r'^register/success/$', register_success),
      url(r'^home/$', home),
  )
  
  urlpatterns += staticfiles_urlpatterns()
  
subject: Update urls.py