add_comment - wstep

This commit is contained in:
Jędrzej Klepacki 2021-01-01 18:46:20 +01:00
parent 799b05b2a2
commit 9a0fa59a6a
5 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
ocena użytkownika

View File

@ -26,5 +26,6 @@ urlpatterns = [
path('<int:user_id>/delete_user', views.delete_user, name='delete_user'), path('<int:user_id>/delete_user', views.delete_user, name='delete_user'),
path('edit_user', views.edit_user, name='edit_user'), path('edit_user', views.edit_user, name='edit_user'),
path('user_profile/<str:user_name>', views.user_profile, name='user_profile'), path('user_profile/<str:user_name>', views.user_profile, name='user_profile'),
path('user_profile/<str:user_name>/add_comment', views.add_comment, name='add_comment'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

View File

@ -451,3 +451,6 @@ def user_profile(request, user_name):
'name': user_prof.email, 'name': user_prof.email,
} }
return HttpResponse(template.render(context, request)) return HttpResponse(template.render(context, request))
def add_comment(request, user_name):
return True