Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the regular expression for the "root" of a website in django?

I'm using django and when users go to www.website.com/ I want to point them to the index view.

Right now I'm doing this:

(r'^$', 'ideas.idea.views.index'),

However, it's not working. I'm assuming my regular expression is wrong. Can anyone help me out? I've looked at python regular expressions but they didn't help me.

like image 566
rksprst Avatar asked Nov 17 '08 00:11

rksprst


1 Answers

What you have should work (it does for me). Make sure it's in the top urls.py, and it should also be at the top of the list.

like image 103
Harley Holcombe Avatar answered Oct 18 '22 06:10

Harley Holcombe