urls.py
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path("second", views.second, name="index")
]
views.py
def index(request):
return HttpResponse("Hello, world. You're at the polls index.")
def second(request):
return HttpResponse("Second line of code that I added")
#this is in the urls.py file. The "default" one is locaed in yourprojectname/yourprojectname/urls.py
#for example, djangosite/djangosite/urls.py
#remember you will have more than one of these urls.py files in different folders
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
]