Skip to content

Commit

Permalink
Merge pull request #23 from bgr8/patch-1
Browse files Browse the repository at this point in the history
Refactor index view for improved code structure and adherence to PEP 8
  • Loading branch information
joshaber authored May 30, 2023
2 parents 5b13fcb + 15a142d commit 3047afd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions hello_world/core/views.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from django.shortcuts import render

def index(request):
return render(
request,
"index.html",
{
"title": "Django example",
},
)
context = {
"title": "Django example",
}
return render(request, "index.html", context)

0 comments on commit 3047afd

Please sign in to comment.