Questions tagged as 'python'

0
answers

Python error "TypeError: must be type, not classobj"

I have the following code ( that I got from this article ), that what it does is open a external application such as a web page or a file by means of a powershell. import getopt import os import shutil import sys import tempfile from zipfile...
asked by 14.09.2017 / 11:13
1
answer

How can I create a Cookie in Django

I want to create a cookie to save certain data when the user starts session. I read the cookies that exist with request.COOKIES['cookie_name'] but I am not able to create one. Thank you very much!     
asked by 11.09.2017 / 21:33
0
answers

Error trying to read WSGI handler in IIS with DJANGO

Etoy raising an application of Django with IIS in Windows 10; however, it shows me the following error. I was guided by the following video: link Error occurred while reading WSGI handler: Traceback (most recent call last): File "C: \ in...
asked by 06.09.2017 / 14:04
1
answer

Decode error - output not utf-8

I'm using Sublime Text 2.0.2 for my work in Python 3. I get an error running it:    "Decode error - output not utf-8" The strange thing is that running it in the Python Shell runs without problems. code_example.py: # -*- coding...
asked by 10.09.2017 / 17:01
1
answer

Call ConsoleApp from python

Good morning. My problem is that I am trying to call a console application (made in c #) from python, and call the process in the same terminal. So I do not return the termianl to continue typing and in turn the exe of c # is only to listen to a...
asked by 05.09.2017 / 01:10
1
answer

Template django

I am currently developing a website with python and django , I have a table of educational offers and another table which has a many-to-many relationship with educational offerings, make the query in the database ofertas = models.ManyToMany...
asked by 05.09.2017 / 01:44
0
answers

kivy opencv android

I'm trying to build an apk with an application that works perfectly on my PC but when I pass it to the tablet it installs it correctly and when I want to execute it I get the error that the application stopped. I built the apk with a buildozer a...
asked by 30.08.2017 / 12:07
1
answer

How to update a table when deleting a data in DJANGO

I'm working with Django. I'm making a shopping basket with Class Based Views. Everything works correctly, but I want that when removing an item from the basket (DeleteView) a function is executed to modify the quantity of another table. I just n...
asked by 26.08.2017 / 10:27
0
answers

PROBLEM in python

Very good to all, the fact is that I have done this program in Python to break down amounts, but when I'm about to put 3 € for example, it says 1.5 coins of 2 €, same thing happens to me with cents but not with the bills. Thank you very much....
asked by 07.09.2017 / 16:50
0
answers

I have a problem when I want to install beautifulsoup4 and requests

This error shows me the truth is that I do not have much programming in python if you could help me solve this error or know which versions can be used or how to validate it I would appreciate it    Collecting requests == 2.18.4 (from -r r...
asked by 28.08.2017 / 16:23