# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division

from django.conf.urls import patterns, url, include
from rest_framework.routers import SimpleRouter

from apps.home.views import (home_page,
                             UserLayerViewSet,
                             LayerListView,
                             FavoriteListView,
                             FavoriteCreateDestroyView)


username_regex = r'[\w.@+-]+'
slug_regex = r'[-_\w]+'

# Use router for UserLayerViewSet to generate urls automatically. This
# can only be done for ViewSets.
router = SimpleRouter()
router.register(r'user/(?P<username>' + username_regex + r')/layers',
                UserLayerViewSet, base_name='user_layers')


urlpatterns = patterns(
    '',
    url(r'^', include(router.urls)),
    url(r'user/(?P<username>' + username_regex + r')/favorites/',
        FavoriteListView.as_view()),
    url(r'user/(?P<username>' + username_regex + r')/layers/(?P<slug>' +
        slug_regex + r')/favorite/',
        FavoriteCreateDestroyView.as_view()),
    url(r'layers/', LayerListView.as_view()),
    url(r'', home_page, name='home_page'),
)

@@ -911,19 +911,20 @@
 vorites/
+$
 ',%0A
-
         
@@ -1059,16 +1059,17 @@
 avorite/
+$
 ',%0A     
@@ -1126,16 +1126,17 @@
 'layers/
+$
 ', Layer
@@ -1166,16 +1166,18 @@
   url(r'
+%5E$
 ', home_
@@ -1201,10 +1201,219 @@
 page'),%0A
+    url(r'login/$', home_page),%0A    url(r'sign-up/$', home_page),%0A    url(r'send-activation/$', home_page),%0A    url(r'forgot/$', home_page),%0A    url(r'logout/$', home_page),%0A    url(r'activate/$', home_page),%0A
 )%0A

Add URLs to redirect to home_page