Questions tagged as 'python'

0
answers

Django does not send emails through SendGrid (Heroku)

I have a server in django version free I am doing development tests and it turns out that when I want to send an email from for example /accounts/password_reset/ does not work, but if I use the django.core.auth.mail -> send_mail...
asked by 21.05.2018 / 07:26
0
answers

Python Peewee AttributeError - When I consult with more than one join

I am trying to make a query with ORM Peewee with a connection to an existing database . Specifically I need to relate three tables with joins but I get the following error: (work) C: \ Users \ eguzman \ Documents \ python-work \ asterisk-...
asked by 17.05.2018 / 21:28
1
answer

Question about "import" / "from import"

I do not understand why, with some third-party modules that I use, when trying: import foo does not let me access foo.bar ; however, when using from foo import bar Yes I can correctly access bar Why is this happ...
asked by 17.05.2018 / 21:33
1
answer

Graph Only X Axis Matplotlib

I want to graph only X axis in Matplotlib. I have a list x = [0,1,2,3,4,5,6] and I want to draw only the x axis with that range of values. I do not need a vertical axis, only the horizontal axis. As an example, I add an image. I...
asked by 16.05.2018 / 21:04
0
answers

Python Wait for a window / process to open then close the previous program

Dear Community Users Based on a previous thread Start two processes and wait for the second process to finish to finish the first one , I ask the following question. From the following example that opens two applications (Notepad and Paint), af...
asked by 17.05.2018 / 21:06
0
answers

Python Connection MSSQL AWS Lambda

I'm trying to connect a lambda function in AWS, to an MSSQL database with no results I'm using the pyodbc library, but it gives me the following problems from datetime import datetime from dateutil.parser import parse from os import getenv...
asked by 17.05.2018 / 21:09
1
answer

Save model with many-to-many field using CreateView

I have the following problem I have two models one Themes and another Videos have a relationship much to many already that a video can deal with different topics, the problem is that when saving a video I do not give any error and I am saved but...
asked by 16.05.2018 / 02:23
1
answer

How do I delete a file despite being used by a process?

I am developing a bot for telegram, one of its functions is the possibility of sharing a video of youtube and downloading it. Using a library called "PAFY" documentation here I have managed to make it possible to download a YouTube video fr...
asked by 21.05.2018 / 20:05
0
answers

python appears this error when importing a library: Message: 8593 is not in required range

import sys sys.path.append("C:\Users\BOIG\AppData\Local\Programs\Python\Python35-32") sys.path.append("C:\Users\BOIG\AppData\Local\Programs\Python\Python35-32\bs4") sys.path.append("C:\Users\BOIG\AppData\Local\Programs\Python\Python35-32\DLLs") s...
asked by 18.05.2018 / 00:09
3
answers

Delete space between two print

How can I eliminate the space between 2 print different in Python? For example: num = raw_input() num = float(num) result="" while num>=1000: result+= "M" num = num - 1000 if num>=900: result+= "CM", num=num-900 if...
asked by 16.05.2018 / 21:49