django2: How to use different templates?
问题 Say I created a django project called django_site . I created two sub-projects: site1 and polls . You see that I have two index.html in two sub-projects directories. However, now, if I open on web browser localhost:8000/site1 or localhost:8000/polls , they all point to the index.html of polls . How can I configure so when I open localhost:8000/site1 it will use the index.html of site1 ? My settings.py in django_site directory: .. TEMPLATES = [ { 'BACKEND': 'django.template.backends.django