wyswietlanie ilosci ocen uzytkownika
This commit is contained in:
parent
606ab4c1a9
commit
d700310352
18
SocialHelper/.gitignore
vendored
Normal file
18
SocialHelper/.gitignore
vendored
Normal 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
|
Binary file not shown.
Binary file not shown.
@ -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'
|
||||
|
BIN
SocialHelper/enGB/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/admin.cpython-38.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/admin.cpython-38.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/apps.cpython-38.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/apps.cpython-38.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/models.cpython-38.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/models.cpython-38.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/urls.cpython-38.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/urls.cpython-38.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/__pycache__/views.cpython-38.pyc
Normal file
BIN
SocialHelper/enGB/__pycache__/views.cpython-38.pyc
Normal file
Binary file not shown.
BIN
SocialHelper/enGB/migrations/__pycache__/__init__.cpython-38.pyc
Normal file
BIN
SocialHelper/enGB/migrations/__pycache__/__init__.cpython-38.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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"/>
|
||||
|
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user