Политика конфиденциальностиКонтактыО сайтеОтзывыGitHubDonate
© EVILEG 2015-2018
Рекомендует хостинг
TIMEWEB
ЖН
8 декабря 2018 г. 12:54

Сохранение данных приложения после закрытия

GUI, срочно, Python 3, PyQt5

как сохранить данные приложения после закрытие и как сортировать лист по имени если имена одинаковые то по дате рождения,заранее спасибо

задача примерно таккая:

Write a program with a well designed, developed and tested GUI, which can handle and show information about bank accounts and clients. The GUI provide facilities to add new clients with their data, like name, date of birth, unique client identifier (program generates and fills up automatically), account number (2x8 digits) and balance. So the user can add new client, modify and delete the existent items via GUI if he/she wants it. The software can handle the all possible exception and gives any information about them for the users. The GUI is contained a list view in where the clients are sorted according to their names and date of birth (if the names are equals). The user can filter the clients based on the amount of their money. The software save the collected data into file before closing and load back when it starts.

# -*- coding: utf-8 -*-



# Form implementation generated from reading ui file 'G:\Oktatás\Programozás 2\lab08\worker.ui'

#

# Created by: PyQt5 UI code generator 5.11.3

#

# WARNING! All changes made in this file will be lost!



import re

from PyQt5 import QtCore, QtGui, QtWidgets

import myClasses as mc



class Ui_MainWindow(object):



lsWorkers = []



def setupUi(self, MainWindow):

MainWindow.setObjectName("MainWindow")

MainWindow.resize(541, 600)

palette = QtGui.QPalette()

brush = QtGui.QBrush(QtGui.QColor(0, 0, 0))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)

brush = QtGui.QBrush(QtGui.QColor(157, 155, 159))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush)

brush = QtGui.QBrush(QtGui.QColor(147, 147, 147))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)

brush = QtGui.QBrush(QtGui.QColor(157, 155, 159))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush)

brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)

brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))

brush.setStyle(QtCore.Qt.SolidPattern)

palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush)

MainWindow.setPalette(palette)

self.centralwidget = QtWidgets.QWidget(MainWindow)

self.centralwidget.setObjectName("centralwidget")

self.label = QtWidgets.QLabel(self.centralwidget)

self.label.setGeometry(QtCore.QRect(10, 10, 61, 16))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label.setFont(font)

self.label.setObjectName("label")

self.label_2 = QtWidgets.QLabel(self.centralwidget)

self.label_2.setGeometry(QtCore.QRect(10, 40, 131, 31))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_2.setFont(font)

self.label_2.setObjectName("label_2")

self.label_3 = QtWidgets.QLabel(self.centralwidget)

self.label_3.setGeometry(QtCore.QRect(10, 80, 131, 31))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_3.setFont(font)

self.label_3.setObjectName("label_3")

self.label_4 = QtWidgets.QLabel(self.centralwidget)

self.label_4.setGeometry(QtCore.QRect(10, 120, 131, 31))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_4.setFont(font)

self.label_4.setObjectName("label_4")

self.label_5 = QtWidgets.QLabel(self.centralwidget)

self.label_5.setGeometry(QtCore.QRect(10, 160, 131, 31))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_5.setFont(font)

self.label_5.setObjectName("label_5")

self.inName = QtWidgets.QLineEdit(self.centralwidget)

self.inName.setGeometry(QtCore.QRect(70, 0, 461, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.inName.setFont(font)

self.inName.setObjectName("inName")

self.inID = QtWidgets.QLineEdit(self.centralwidget)

self.inID.setGeometry(QtCore.QRect(90, 40, 441, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.inID.setFont(font)

self.inID.setObjectName("inID")

self.inAdd = QtWidgets.QLineEdit(self.centralwidget)

self.inAdd.setGeometry(QtCore.QRect(90, 80, 441, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.inAdd.setFont(font)

self.inAdd.setObjectName("inAdd")

self.inPhone = QtWidgets.QLineEdit(self.centralwidget)

self.inPhone.setGeometry(QtCore.QRect(140, 120, 391, 31))

palette = QtGui.QPalette()

# brush = QtGui.QBrush(QtGui.QColor(141, 141, 141))

# brush.setStyle(QtCore.Qt.SolidPattern)

# palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush)

# brush = QtGui.QBrush(QtGui.QColor(141, 141, 141))

# brush.setStyle(QtCore.Qt.SolidPattern)

# palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush)

# brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))

# brush.setStyle(QtCore.Qt.SolidPattern)

# palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush)

# self.inPhone.setPalette(palette)

font = QtGui.QFont()

font.setPointSize(12)

self.inPhone.setFont(font)

self.inPhone.setObjectName("inPhone")

self.inMail = QtWidgets.QLineEdit(self.centralwidget)

self.inMail.setGeometry(QtCore.QRect(70, 160, 461, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.inMail.setFont(font)

self.inMail.setObjectName("inMail")

self.btnAdd = QtWidgets.QPushButton(self.centralwidget)

self.btnAdd.setGeometry(QtCore.QRect(10, 210, 81, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.btnAdd.setFont(font)

self.btnAdd.setObjectName("btnAdd")

self.btnAdd_2 = QtWidgets.QPushButton(self.centralwidget)

self.btnAdd_2.setGeometry(QtCore.QRect(100, 210, 81, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.btnAdd_2.setFont(font)

self.btnAdd_2.setObjectName("btnAdd_2")

self.btnAdd_3 = QtWidgets.QPushButton(self.centralwidget)

self.btnAdd_3.setGeometry(QtCore.QRect(190, 210, 81, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.btnAdd_3.setFont(font)

self.btnAdd_3.setObjectName("btnAdd_3")

self.btnAdd_4 = QtWidgets.QPushButton(self.centralwidget)

self.btnAdd_4.setGeometry(QtCore.QRect(280, 210, 81, 31))

font = QtGui.QFont()

font.setPointSize(12)

self.btnAdd_4.setFont(font)

self.btnAdd_4.setObjectName("btnAdd_4")

self.label_6 = QtWidgets.QLabel(self.centralwidget)

self.label_6.setGeometry(QtCore.QRect(10, 250, 141, 21))

font = QtGui.QFont()

font.setFamily("Arial")

font.setPointSize(14)

self.label_6.setFont(font)

self.label_6.setObjectName("label_6")

self.list = QtWidgets.QListWidget(self.centralwidget)

self.list.setGeometry(QtCore.QRect(10, 280, 521, 291))

self.list.setFrameShape(QtWidgets.QFrame.Box)

self.list.setObjectName("list")

MainWindow.setCentralWidget(self.centralwidget)

self.menubar = QtWidgets.QMenuBar(MainWindow)

self.menubar.setGeometry(QtCore.QRect(0, 0, 541, 21))

self.menubar.setObjectName("menubar")

MainWindow.setMenuBar(self.menubar)

self.statusbar = QtWidgets.QStatusBar(MainWindow)

self.statusbar.setObjectName("statusbar")

MainWindow.setStatusBar(self.statusbar)



self.retranslateUi(MainWindow)

QtCore.QMetaObject.connectSlotsByName(MainWindow)



self.btnAdd.clicked.connect(self.btnAddClicked)

self.btnAdd_2.clicked.connect(self.editClicked)

self.btnAdd_3.clicked.connect(self.btnAddClicked)

self.btnAdd_4.clicked.connect(self.deleteItem)

# self.list.itemClicked.connect(self.itemClicked)



def retranslateUi(self, MainWindow):

_translate = QtCore.QCoreApplication.translate

MainWindow.setWindowTitle(_translate("MainWindow", "Workers"))

self.label.setText(_translate("MainWindow", "Name:"))

self.label_2.setText(_translate("MainWindow", "ID code:"))

self.label_3.setText(_translate("MainWindow", "Address:"))

self.label_4.setText(_translate("MainWindow", "Phone number:"))

self.label_5.setText(_translate("MainWindow", "Email:"))

self.inPhone.setText(_translate("MainWindow", "+36301234567"))

self.btnAdd.setText(_translate("MainWindow", "Add"))

self.btnAdd_2.setText(_translate("MainWindow", "Edit"))

self.btnAdd_3.setText(_translate("MainWindow", "Modify"))

self.btnAdd_4.setText(_translate("MainWindow", "Delete"))

self.label_6.setText(_translate("MainWindow", "List of persons:"))

self.reloadDatas()



def btnAddClicked(self):

try:

name = self.inName.text()

id = self.inID.text()

address = self.inAdd.text()

phone = self.inPhone.text()

email = self.inMail.text()



if len(name) == 0:

raise mc.MissingDataException('name')

if len(id) == 0:

raise mc.MissingDataException('ID number')

if len(address)==0:

raise mc.MissingDataException('address')

if len(phone)==0:

raise mc.MissingDataException('phone number')

if len(email)==0:

raise mc.MissingDataException('email address')



if len(phone) < 11 or len(phone) > 12 or not re.match('[+]36([0-9])',phone):

raise mc.PhoneNumberFormatException



if not re.match('([0-9a-zA-Z_.-]+@\w+(?:\.\w+))',email):

raise mc.EmailFormatException





except mc.MissingDataException as mse:

msg = QtWidgets.QMessageBox()

msg.setWindowTitle('Warning!')

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText(mse.__str__())

msg.exec()



except mc.PhoneNumberFormatException:

msg = QtWidgets.QMessageBox()

msg.setWindowTitle('Warning!')

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("The phone number is not in right format!")

msg.exec()



except mc.EmailFormatException:

msg = QtWidgets.QMessageBox()

msg.setWindowTitle('Warning!')

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("The email address is not in right format!")

msg.exec()



else:

if not self.inID.isReadOnly():

w = mc.Worker(name,id,address,phone,email)

if w not in self.lsWorkers:

self.lsWorkers.append(w)

self.lsWorkers.sort()

self.list.clear()

self.saveToFile()

for i in self.lsWorkers:

self.list.addItem(i.__str__())

else:

msg = QtWidgets.QMessageBox()

msg.setWindowTitle('Warning!')

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("This person has already applied at your company!")

msg.exec()

else:

for i in self.lsWorkers:

if i.getID() == self.inID.text():

self.lsWorkers.remove(i)

i.setName(name)

i.setAddress(address)

i.setPhone(phone)

i.setEmail(email)

self.lsWorkers.append(i)

self.lsWorkers.sort()

self.list.clear()

self.saveToFile()

self.inID.setReadOnly(False)

for j in self.lsWorkers:

self.list.addItem(j.__str__())





def editClicked(self,item):

if not self.list.currentItem():

msg = QtWidgets.QMessageBox()

msg.setWindowTitle("Warning!")

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("You should select any person from the list!")

msg.exec()

else:

item = self.list.currentItem()

tmp = item.text()

tmp = tmp.split('(')

id = tmp[1][:-1].split(" ")

id = id[1]

for i in self.lsWorkers:

if id == i.getID():

self.inName.setText(i.getName())

self.inID.setText(i.getID())

self.inAdd.setText(i.getAddress())

self.inPhone.setText(i.getPhone())

self.inMail.setText(i.getEmail())

self.inID.setReadOnly(True)



def deleteItem(self):

if not self.list.currentItem():

msg = QtWidgets.QMessageBox()

msg.setWindowTitle("Warning!")

msg.setIcon(QtWidgets.QMessageBox.Warning)

msg.setText("You should select any person from the list!")

msg.exec()

else:

item = self.list.currentItem()

tmp = item.text()

tmp = tmp.split('(')

id = tmp[1][:-1].split(" ")

id = id[1]

for i in self.lsWorkers:

if id == i.getID():

self.lsWorkers.remove(i)

self.saveToFile()

self.list.clear()

for j in self.lsWorkers:

self.list.addItem(j.__str__())



def saveToFile(self):

outFile = open("database.txt","w")

for i in self.lsWorkers:

print('{};{};{};{};{}\n'.format(i.getName(),i.getID(),i.getAddress(),i.getPhone(),i.getEmail()),file=outFile)

outFile.close()



def reloadDatas(self):

inFile = open("database.txt","r")

for i in inFile:

if i.count(";") == 4:

tmp = i.split(';')

self.lsWorkers.append(mc.Worker(tmp[0],tmp[1],tmp[2],tmp[3],tmp[4][:-1]))

inFile.close()

self.lsWorkers.sort()

for i in self.lsWorkers:

self.list.addItem(i.__str__())







if __name__ == "__main__":

import sys

app = QtWidgets.QApplication(sys.argv)

MainWindow = QtWidgets.QMainWindow()

ui = Ui_MainWindow()

ui.setupUi(MainWindow)

MainWindow.show()

sys.exit(app.exec_())

2
ДТ

Ничерта не понял, что у тебя за задача, но, полагаю, это реализуется через переопределение QCloseEvent:

void MainWindow::closeEvent(QCloseEvent *e)
{
    {
        QMessageBox::StandardButton askBtn = QMessageBox::question(this, "Выход" ,tr("Действительно хотите выйти?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
        if (askBtn == QMessageBox::Yes)
        {
                e->accept();
        }
       if (askBtn == QMessageBox::No)
            e->ignore();
    }
    else
        e->ignore();
}
0
ЖН
может так будет понятнее


# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'C:\Users\hallgato\PycharmProjects\workers.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore, QtGui, QtWidgets
from Worker import Worker

class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(332, 512)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(10, 10, 81, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label.setFont(font)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setGeometry(QtCore.QRect(10, 40, 81, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setGeometry(QtCore.QRect(10, 70, 81, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setGeometry(QtCore.QRect(10, 100, 111, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(self.centralwidget)
self.label_5.setGeometry(QtCore.QRect(10, 130, 81, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.btnAdd = QtWidgets.QPushButton(self.centralwidget)
self.btnAdd.setGeometry(QtCore.QRect(10, 170, 75, 23))
self.btnAdd.setObjectName("btnAdd")
self.btnSelect = QtWidgets.QPushButton(self.centralwidget)
self.btnSelect.setGeometry(QtCore.QRect(90, 170, 75, 23))
self.btnSelect.setObjectName("btnSelect")
self.btnModify = QtWidgets.QPushButton(self.centralwidget)
self.btnModify.setGeometry(QtCore.QRect(170, 170, 75, 23))
self.btnModify.setObjectName("btnModify")
self.btnDelete = QtWidgets.QPushButton(self.centralwidget)
self.btnDelete.setGeometry(QtCore.QRect(250, 170, 75, 23))
self.btnDelete.setObjectName("btnDelete")
self.lsWorkers = QtWidgets.QListWidget(self.centralwidget)
self.lsWorkers.setGeometry(QtCore.QRect(10, 230, 311, 251))
self.lsWorkers.setObjectName("lsWorkers")
self.label_6 = QtWidgets.QLabel(self.centralwidget)
self.label_6.setGeometry(QtCore.QRect(10, 190, 131, 31))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
self.label_6.setFont(font)
self.label_6.setObjectName("label_6")
self.inName = QtWidgets.QLineEdit(self.centralwidget)
self.inName.setGeometry(QtCore.QRect(60, 10, 261, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inName.setFont(font)
self.inName.setObjectName("inName")
self.inID = QtWidgets.QLineEdit(self.centralwidget)
self.inID.setGeometry(QtCore.QRect(70, 40, 251, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inID.setFont(font)
self.inID.setObjectName("inID")
self.inAddress = QtWidgets.QLineEdit(self.centralwidget)
self.inAddress.setGeometry(QtCore.QRect(80, 70, 241, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inAddress.setFont(font)
self.inAddress.setObjectName("inAddress")
self.inPhone = QtWidgets.QLineEdit(self.centralwidget)
self.inPhone.setGeometry(QtCore.QRect(120, 100, 201, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inPhone.setFont(font)
self.inPhone.setObjectName("inPhone")
self.inEmail = QtWidgets.QLineEdit(self.centralwidget)
self.inEmail.setGeometry(QtCore.QRect(60, 130, 261, 31))
font = QtGui.QFont()
font.setPointSize(11)
self.inEmail.setFont(font)
self.inEmail.setObjectName("inEmail")
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 332, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)

self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)

def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Worker"))
self.label.setText(_translate("MainWindow", "Name:"))
self.label_2.setText(_translate("MainWindow", "ID code:"))
self.label_3.setText(_translate("MainWindow", "Address:"))
self.label_4.setText(_translate("MainWindow", "Phone number:"))
self.label_5.setText(_translate("MainWindow", "Email:"))
self.btnAdd.setText(_translate("MainWindow", "Add new"))
self.btnSelect.setText(_translate("MainWindow", "Select"))
self.btnModify.setText(_translate("MainWindow", "Modify"))
self.btnDelete.setText(_translate("MainWindow", "Delete"))
self.label_6.setText(_translate("MainWindow", "List of employees:"))


if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
class Worker:

def __init__(self, name, id, address, phone, email):
self.__name = name
self.__id = id
self.__address = address
self.__phone = phone
self.__email = email

def getName(self):
return self.__name

def getID(self):
return self.__id

def getAddress(self):
return self.__address

def getPhone(self):
return self.__phone

def getEmail(self):
return self.__email

def setName(self, p):
self.__name = p

def setAddress(self, p):
self.__address = p

def setPhone(self, p):
self.__phone = p

def setEmail(self, p):
self.__email = p

def __str__(self):
return self.__name + " (ID: " + self.__id + ")"

def __eq__(self, other):
return self.getID() == other.getID()

def __le__(self, other):
if self.getName() == other.getName():
return self.getID() < other.getID()
else:
return self.getName() < other.getName()
def __gt__(self, other):
return self.getName() > other.getName()

0

Комментарии

Только авторизованные пользователи могут публиковать комментарии.
Пожалуйста, авторизуйтесь или зарегистрируйтесь
НБ
15 февраля 2019 г. 13:09
Николай Булахтин

C++ - Тест 003. Условия и циклы

  • Результат:50баллов,
  • Очки рейтинга-4
НБ
15 февраля 2019 г. 13:03
Николай Булахтин

C++ - Тест 002. Константы

  • Результат:25баллов,
  • Очки рейтинга-10
НБ
15 февраля 2019 г. 13:01
Николай Булахтин

C++ - Тест 001. Первая программа и типы данных

  • Результат:73баллов,
  • Очки рейтинга1
Последние комментарии
V
14 февраля 2019 г. 18:41
Vlad15007

Спасибо огромное! Заработало!
А
12 февраля 2019 г. 9:26
Александр90

Сам разборался, спасибо.
А
12 февраля 2019 г. 8:19
Александр90

День добрый! Можешь выложить форму mainwindow.ui от урока? Заранее спасибо
11 февраля 2019 г. 10:51
Евгений Легоцкой

Нет, у меня проблема с жёстким диском случилась, занимался восстановлением ПК, ещё пару вечеров придётся этим заниматься, увы.
Сейчас обсуждают на форуме
15 февраля 2019 г. 21:22
IscanderChe

Доброй ночи.Скромно напоминаю о своём вопросе...
15 февраля 2019 г. 15:36
Евгений Легоцкой

Ну я тут нашёл одно решение, но сам его не проверял. Вам нужно помещать фамилии скорее всего в ячейки заголовка, и потом просто перерисовывать их QHeaderView * header = m_ui->tableWidget...
15 февраля 2019 г. 7:53
Евгений Легоцкой

Добрый день! Не работал с remoteobjects, поэтому глянул документацию, чтобы рассмотреть, что это за зверь. После просмотра документации сложилось стойкой впечатление, что это вполне возм...
m
14 февраля 2019 г. 18:28
mr_roman

Нашел решение на Java. Удалось интегрировать в проект сервиса на Qt, теперь из Qt запускаю Java-код акселерометра.
14 февраля 2019 г. 11:00
Евгений Легоцкой

ok. I see. You changed related name Try this {% if goal.joined.all|user_in:request.user %}
Присоединяйтесь к нам в социальных сетях

Для зарегистрированных пользователей на сайте присутствует минимальное количество рекламы