Django URL.py and the index
django, django-urls, python
Solution
Like this:
#...
(r'^$', index),
#...
Problem
I want to know what is the best way to write in the `URL.py`. I am trying to get the index in this way: `www.example.com` with `(r'',index)`. But when I try `r''`, all pages in the website are going to the home page. Part of my `url.py`: ``` (r'^index',homepages), (r'',homepages), ``` Thanks :)