Receitas > urls.py
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('receita', views.receita, name='receita'),
]
Receitas > views.py
from django.shortcuts import render
def index(request):
return render(request, 'index.html')
def receita(request):
return render(request, 'receita.html')
alurareceitas > urls.py
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('receitas.urls')),
]