Created a separate handler for the main page

It displays the last five blog entries
This commit is contained in:
2013-10-01 22:55:35 +02:00
parent 4cb97ed97a
commit e04a7c6fda
2 changed files with 6 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', 'blog.views.index', name='home'),
url(r'^$', 'blog.views.mainpage', name='home'),
# url(r'^$', 'gergelypolonkai_django.views.home', name='home'),
url(r'^blog/', include('blog.urls', namespace='blog')),