Saturday, 24 August 2013

How to setup Django default function?

How to setup Django default function?

I'm not sure that my question is correct. I develop a web site on local
machine and I can not understand how to setup a view which will be
executed when I open a start page http://127.0.0.1:8000/
I've tried to write a url - url(r'^/', 'pages.views.home', name='home'),
but when I go to browser it doesn't work.
Maybe I need to change settings.

No comments:

Post a Comment