I managed to create a URL tag for my index. But right now I\'m confused how to add links to other pages.
I put this on my urls.py
url(r\
Just use the same label {% url 'index' %}
.
You may use each name
in urls.py to link to the url.
urls.py
url(r'^archive/$', 'mysite.views.archive',name='archive'),
url(r'^about/$', 'mysite.views.about',name='about'),
url(r'^contact/$', 'mysite.views.contact',name='contact'),
template
About
Contact
If you have many apps, use namespace
https://docs.djangoproject.com/en/dev/topics/http/urls/#url-namespaces-and-included-urlconfs