From 9a0fa59a6a305383e12a88196672e766f7ef3f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Klepacki?= Date: Fri, 1 Jan 2021 18:46:20 +0100 Subject: [PATCH] add_comment - wstep --- .../homepage/__pycache__/urls.cpython-37.pyc | Bin 1114 -> 1190 bytes .../homepage/__pycache__/views.cpython-37.pyc | Bin 10200 -> 10310 bytes .../templates/homepage/add_comment.html | 1 + SocialHelper/homepage/urls.py | 1 + SocialHelper/homepage/views.py | 3 +++ 5 files changed, 5 insertions(+) create mode 100644 SocialHelper/homepage/templates/homepage/add_comment.html diff --git a/SocialHelper/homepage/__pycache__/urls.cpython-37.pyc b/SocialHelper/homepage/__pycache__/urls.cpython-37.pyc index f930713ba04aa1e3c24a63a6cc6d115322dcb4e0..63d74f42d9700a8aa452f7cf90fc4388b455d8e1 100644 GIT binary patch delta 189 zcmcb`v5ZsQiI>!CvRrfVp9dWph$J{V`f)I OgUOmK`Ye2m0!#q&kuduJ delta 128 zcmZ3+d5c5ciIoSSm%n zmr0xsm_gHEa|)xh3gfNG z4XX1^+JK6anLt{A07Nqau`>`CvjB+{Mxc5ozmOsgAV-s_NEJvGwN4h46_HI$Nr_L+ z&&^HED>)9-Qw%nPv8WxSP=B+kS`Z^Q$ZW7ckp@tU@Z<^Ve2f;8=c`*XaYzFIe!3%| delta 69 zcmX>WaKoR^iIXt7b/delete_user', views.delete_user, name='delete_user'), path('edit_user', views.edit_user, name='edit_user'), path('user_profile/', views.user_profile, name='user_profile'), + path('user_profile//add_comment', views.add_comment, name='add_comment'), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/SocialHelper/homepage/views.py b/SocialHelper/homepage/views.py index a0bc753..924c675 100644 --- a/SocialHelper/homepage/views.py +++ b/SocialHelper/homepage/views.py @@ -451,3 +451,6 @@ def user_profile(request, user_name): 'name': user_prof.email, } return HttpResponse(template.render(context, request)) + +def add_comment(request, user_name): + return True