Questions tagged as 'python'

0
answers

How can routes be protected when generating a pdf with wkhtmltopdf-django using a POST method?

I need to generate a pdf for which I use a class with a get method, I need to protect the address generated by this pdf, using a post method or something that allows me to hide the address or parameters that I pass. What can I do? class PDF4(L...
asked by 09.03.2018 / 17:01
0
answers

Pydev Django when restarting server does not reload changes made in html

Good morning, I'm just starting in the development of web python, I'm using Eclipse and working with Pydev, I'm working with a project downloaded from a repo where my task is to create a form and integrate it into the template used in the projec...
asked by 12.03.2018 / 00:42
0
answers

Kivy-Buildozer: Aidl not found, please install it.

I have an error compiling my app developed in Python-Kivy. Use: Linux-Mint: 18.3 Python: 2.7 kivi: 1.9.2 Buildozer: 0.34 Running the command buildozer -v android debug or buildozer -v android release at the end the fo...
asked by 06.03.2018 / 13:12
1
answer

Why do you show me the error 'NoReserveMatch' in the reverse method by passing it by parameters the name of a url that supposedly is correct?

Previously I was working on Django in its version 1.11 and go to version 2.0 This brought with it that some tests that I had defined do not work for me. Below I put the code of one: from rest_framework.test import APITestCase from djang...
asked by 06.03.2018 / 20:16
1
answer

Python iterate Json with different attribute names

Good morning, I'm working with the Cisco Meraki API, my problem is that I need to iterate and save the data that comes from a json like the following: [ { "name":"My AP", "lat":37.4180951010362, "lng":-122.098531723022, "...
asked by 08.03.2018 / 22:06
0
answers

How can I disable a function in python using a timer

I need to put some kind of timer to this function, that is to say that after 30 for example it is deactivated. def On_Command(self, Player, cmd, args): if cmd == "a": if self.Enable == 1: if Player.Admin:...
asked by 08.03.2018 / 23:48
2
answers

Python: open txt file in different folder

I have the following hierarchy > Project > App1 > folder1 > main.py > App2 > folder1 > folder2 > file.txt I want to op...
asked by 08.03.2018 / 17:11
1
answer

Shadow effect error, blur in PyQt

I am generating a small interface but when I try to add a shadow effect (DropShadowEffect) and a blur () effect, it throws me an error: This is my code. import sys from PyQt5.QtWidgets import QMainWindow, QApplication ,QLabel, QGraphicsEffe...
asked by 08.03.2018 / 20:25
1
answer

Help with an error in passing data to an IA through partial_fit ()

I am trying to get an AI to play collect data and learn, everything fumitates correctly, but at the time of passing on the collected data so that it learns about the following error:    ValueError: Found input variables with inconsistent numb...
asked by 06.03.2018 / 21:27
0
answers

Django social auth validate user manually

I am using social auth of django with pipelines to get the email from social networks, but when I log in with facebook and then with google I am created two different accounts with the same mail How can I avoid this by sending a message...
asked by 06.03.2018 / 20:30