9 lines
272 B
Python
9 lines
272 B
Python
|
# home/urls.py
|
||
|
|
||
|
from django.urls import path
|
||
|
from . import views # import views from the current app
|
||
|
|
||
|
# Define the URL patterns for the 'home' app
|
||
|
urlpatterns = [
|
||
|
path('', views.index, name='home-index'), # Map the URL '' to the index view with the name 'home-index'
|
||
|
]
|