[Answer]-Django Default main page functionality

1👍

Just put a your default page as a catch-all URL at the end of the other URLs:

urlpatterns = patterns('',
    url(r'^hello_template_simple/$', 'article.views.hello_template_simple'),
    url(r'', 'article.views.hello_template'),

Now any URL which isn’t matched by hello_template_simple will be caught by hello_template.

Leave a comment