Questions tagged as 'python'

1
answer

Get dynamically created Checkbox values

Developing a python application using the Flask framework to perform a simple registration I have the following problem, I have a list of bids and these bids can have several categories, the categories are registered by the user and appear on...
asked by 10.04.2018 / 21:45
1
answer

How to generate lists by naming an item from another list?

It is a program that reads Excel spreadsheet with debit and credit postings in an account. abreexcel2.py def leplanilha(): wb1 = oxl.load_workbook('extratomar2018.xlsx') folhas=wb1.get_sheet_names() print(folhas) sheet=wb1.get_she...
asked by 10.04.2018 / 16:23
0
answers

Make template of a directly raw query and return results in table

Hello, I'm new to django and I'm using a read-only database and I just want to extract some data and table display in hmtl, but I'm not able to return column by column inside the table, help me! I'm using a directly raw query! Model.py from...
asked by 10.04.2018 / 15:51
0
answers

Error in Python proxy configuration

I'm performing automated testing with Selenium and I need to test access to a particular site with different proxy's. I get the list of proxy's through a website and implement the configuration as follows: PROXY = address proxy = Proxy({ '...
asked by 10.04.2018 / 18:54
2
answers

Syntax error in basic calculator Python 3

I've been programming a basic calculator (adding, dividing, multiplying, dividing absolutely, finding the rest of the division and power). The code is this: operando_1=input() operando=input() operando_2=input() resultado=None if operan...
asked by 14.04.2018 / 15:33
3
answers

C: \ Users \ Raiqupip install pygame - "The system can not execute the specified program"

I'm trying to download pygame in python 3.6.5 (64-bit) windows 10, but when I open cmd, I try to run the command " pip install pygame " or kivy , or just type " pip " in the cmd, this message appears ... "The system can not exe...
asked by 14.04.2018 / 02:51
1
answer

Get email content

I'm using the following: import imaplib import email m = imaplib.IMAP4_SSL("imap.gmail.com", 993) m.login("myemail","mypass") m.select("Inbox") result, data = m.uid('search', None, "ALL") # search all email and return uids if result == 'OK':...
asked by 09.04.2018 / 21:07
0
answers

How can I use OpenCL to use the GPU for processing?

A program I wrote in python has required a lot of CPU processing, leaving it somewhat slow. How could I do to use the GPU for processing with opencl (or other media)?     
asked by 09.04.2018 / 21:23
1
answer

Changing how forms.ValidationError is displayed in django

Good evening, is it possible to change how ValidationError is displayed? I noticed that django creates a <ul> tag and inside it a <li> tag with the error. Can I change the way this is done? And if I wanted to change the...
asked by 10.04.2018 / 01:06
1
answer

Extracts data from a website and plays in your web application Flask

What module can I use in flask to get data from an API and plays in my web application in the HTML part     
asked by 10.04.2018 / 03:15