Необходимо записать данные в таблицу, находящуюся в той же бд, что и проект, но не описанную в нем
код такой:
def send(request): text = request.GET["t"] cursor = connection.cursor() for key in request.GET.getlist('u'): cursor.execute("SELECT proton_personal.phone FROM proton_personal WHERE id="+key) phone = cursor.fetchone() cursor.execute("INSERT INTO outbox(text, destinationnumber) VALUES ('%s','%s')",[text, phone]) cursor.commit() return StreamingHttpResponse('ok')
INSERT не выполняется