Skip to content Skip to sidebar Skip to footer

Empty Url In Urls.py

I have a project with several views e.g. - index, contacts and about. And I want url www.aaa.net links to index view, www.aaa.net/about to about view and so on In project urls.py I

Solution 1:

Remove the $ at the end of

url(r'^$', include('mysite.urls'))

When you are trying to include, $, in the regex match implies the end of the url pattern, which was the cause of the issue.

You are probably looking for

url(r'^', include('mysite.urls'))

More info on including URL patterns here

Post a Comment for "Empty Url In Urls.py"