wyswietlanie ilosci ocen uzytkownika

This commit is contained in:
Alicja Kupczyk 2021-01-10 14:15:49 +01:00
parent 606ab4c1a9
commit d700310352
22 changed files with 21 additions and 1 deletions

18
SocialHelper/.gitignore vendored Normal file
View File

@ -0,0 +1,18 @@
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode
### VisualStudioCode ###
.vscode/*
!.vscode/tasks.json
!.vscode/launch.json
*.code-workspace
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
SocialHelper/settings.py
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode

View File

@ -79,7 +79,7 @@ WSGI_APPLICATION = 'SocialHelper.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'socialhelperdb',
'NAME': 'socialhelperdb2',
'USER': 'postgres',
'PASSWORD': 'admin',
'HOST': 'localhost'

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -12,6 +12,7 @@
<div class="solid_banner_inner">
<h3>Profil użytkownika</h3>
<h5>{{ name }}</h5><p><br></p>
<p><SPAN STYLE="font-size:16.0pt">Ilość ocen: <strong>{{suma_ocen}}</SPAN></strong></p>
<p><SPAN STYLE="font-size:16.0pt">Średnia Ocena: <strong>{{ocena_2}}</SPAN></strong></p>
<strong> 1
<img src="{% static "color\ff0000.png"%}" height="20" width="30"/>

View File

@ -465,6 +465,7 @@ def user_profile(request, user_name):
'ocena': ocena,
'name': user_prof.email,
'ocena_2': ocena_2,
'suma_ocen': suma, #suma wszystkich ocen uzytkownika
}
return HttpResponse(template.render(context, request))