8000 Issue #5 solved · moktadirul-raju/DjangoBlog@7144b91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7144b91

Browse files
committed
Issue #5 solved
1 parent 0df21bb commit 7144b91

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

blog/__pycache__/views.cpython-37.pyc

47 Bytes
Binary file not shown.

blog/views.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.shortcuts import render
1+
from django.shortcuts import render, redirect
22
from django.http import HttpResponse
33
from blog.models import Post, Comment,UserProfileInfo
44
from blog.forms import UserForm,UserProfileInfoForm, PostForm
@@ -122,7 +122,8 @@ def submit_comment(request):
122122
c.published_date = datetime.now()
123123
c.save()
124124

125-
return HttpResponseRedirect(reverse('index')) # have to work here
125+
return HttpResponseRedirect(reverse('blog:post_details', args=(post_id, ))) # have to work here
126+
126127

127128

128129
#Log out from b

db.sqlite3

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
0