Halaman Beranda Tautan Django

---urls.py:---
from django.conf.urls.defaults import *

urlpatterns = patterns('myproject.views',
    url(r'^$', 'index', name='index'), #name is important
)

---Templates:---
<a href="{% url 'index' %}">
Thom626