There is no problem in the code. Look again at the quote and typos in the
form class. and do a trial with this view:
from django.shortcuts import render
from django.http import HttpResponseRedirect
from .forms import CommentForm
def my_view(request):
if request.method == 'POST':
for
I am creating a website using Django. I'd like to give users the chance to
comment on pictures they have posted. I have created a comment model and a
comment form, and put the following code into the HTML document for the photo
gallery:
Leave a comment
{{ comment_fo
2 matches
Mail list logo