Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Routes In Django

#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'),
]
 
PREVIOUS NEXT
Tagged: #Routes #In #Django
ADD COMMENT
Topic
Name
4+5 =