first urls and simple views

This commit is contained in:
gw3000 2023-06-07 18:36:54 +02:00
parent 1945ab39c5
commit 0c8ec0f8d1
3 changed files with 24 additions and 4 deletions

View file

@ -1,3 +1,13 @@
from django.shortcuts import render
from django.shortcuts import render, HttpResponse
# Create your views here.
def bird_create(request):
return HttpResponse("Create a bird")
def bird_all(request):
return HttpResponse("Show all Birds")
def bird_single(request, id):
return HttpResponse(f"Show bird with ID {id}")