]>
vgcfreebox.myrthtech.pt Git - ue-cc-donkeysponsor.git/blob - donkeys/urls.py
2 URL configuration for donkeys project.
4 The `urlpatterns` list routes URLs to views. For more information please see:
5 https://docs.djangoproject.com/en/4.2/topics/http/urls/
8 1. Add an import: from my_app import views
9 2. Add a URL to urlpatterns: path('', views.home, name='home')
11 1. Add an import: from other_app.views import Home
12 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
13 Including another URLconf
14 1. Import the include() function: from django.urls import include, path
15 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
17 from django
.contrib
import admin
18 from django
.urls
import path
, include
21 path('admin/', admin
.site
.urls
),
22 # This tells Django: "Forward any web traffic to the 'core' app's routing system"
23 path('', include('core.urls')),