-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade
actions/setup-node
action and cache dependencies on CI (#22883
) * Upgrade setup-node action and cache dependencies on CIg * Update ci.yml Upgrade node version. Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
- Loading branch information
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import HttpResponse
from django.shortcuts import render, get_object_or_404, redirect
from .models import Post, Comment
def post_list(request):
posts = Post.objects.all()
context = {
'posts': posts,
}
return render(request, 'post/post_list.html', context)
def comment_create(request, post_pk):