Questions tagged as 'python'

1
answer

program that asks for the name and date (year, month and day) of a person's birth in Python

Hello, I'm having trouble with the following code in Python :. The idea is to create a program that asks for the name and date (year, month and day) of birth of a person. The program should also request the current date (year, month and d...
asked by 11.04.2018 / 14:44
0
answers

Matching query does not exist

I'm having a difficulty with a project I'm developing in django 2.0 and python3, it's this: I set up my models a get_absolute_rls passing reverse until all ok, and in my template everything works DoesNotExist at /cat...
asked by 11.04.2018 / 13:42
1
answer

E-mail sending with Python and MySQL

I'm trying to send emails through Python with data from a database, but this is an error that I can not understand. The system connects to the bank, sends the first e-mail and when it will send the second e-mail an error. Can anyone help m...
asked by 05.04.2018 / 22:28
0
answers

help with listview Django

I need help getting the values of an object in a list view class Compraslist(LoginRequiredMixin, ListView): model = Solicitacao template_name = 'compraslist.html' def get_context_data(self, **kwargs): context = super(Compraslist, self).ge...
asked by 03.04.2018 / 14:17
2
answers

Can you do with fewer variables?

Constructing a program asks the user to enter positive integers, terminated by 0, and whose output is: "yes X", without the quotation marks, if the sequence contains positive values X and form an increasing sequence; otherwise print "no X". a...
asked by 03.04.2018 / 03:05
1
answer

Get an Entry from TKinter and save to a variable

I made this initial window where it takes the data, and when the client uses it, after giving the data and confirming it, it closes and kept the data saved in a variable that was not tied to a DEF nesting , that is, that could be used at any tim...
asked by 03.04.2018 / 02:48
1
answer

Multilingual website

I'm trying to put a Python / Django site as a multilanguage, but I could not understand how to actually do the documentation or what I found on the Internet, I even found one here in StackOverflow itself and I did not quite understand it either....
asked by 03.04.2018 / 14:36
1
answer

Function strip () in python malfunction

I have a list in a file, where each line has a user agent (with "at the beginning and at the end of each line), which is used in a later part of a program, to perform automated tests using selenium. When I opened the list, I implemented that, fo...
asked by 10.04.2018 / 07:20
0
answers

How to get TKinter information in a variable out of '' def ''

The program I'm doing, I've done it before, but without the graphical interface, now that I'm doing a graphical interface, there are three text boxes where it picks up the information and checks if it has something written or not, but I can onl...
asked by 01.04.2018 / 02:08
1
answer

raw_input and print in python do not work in functions

Well I'm starting now in python and I have to create this project of a quiz that completes the spaces of the sentences. But, my difficulty lies in understanding why raw_inputs and print are not working within functions. Could someone give me a t...
asked by 01.04.2018 / 17:41