Questions tagged as 'python'

1
answer

Error installing BeautifoulSoup using pip

I'm trying to install the BeautifulSoup library with pip for Python 3.6: $ pip install beautifulSoup But he throws me an error: (myvenv) eduardorr21@eduardoreyes21 ~/Documents/WebScraping $ pip install beautifulSoup beautifulSoup...
asked by 08.04.2018 / 08:23
1
answer

How to create dynamic inputs with Django?

I am making a form to add many products to the same collection and I want the collection form to create the collection with an unlimited list of products. My form is this: class TendenciaForm(forms.ModelForm): class Meta: model...
asked by 16.04.2018 / 13:31
1
answer

Script with docx-python does not save the new file

I have the following problem, I have the following code which is responsible for sending the data to the imprimir_ticket module: from es import imprimir_ticket def productos(self): lista_01 = [] pago = self.Cantidad.text()...
asked by 19.08.2018 / 22:54
1
answer

Create a percolator with elasticsearch-dsl-py

I have a project for a master's seminar that consists of taking a list of 107605 records of articles and we need to enter the information at a percolator type index to finally enter texts through an interface, percolate them and highlight...
asked by 21.03.2018 / 10:19
1
answer

Django forms interactive

I am using Python3.5 Django 1.11 as a backend for an apache server in red hat. Currently it has been put into production and works without problems. We are now seeing the need for future use of FORMS in the pages but with the priority of bein...
asked by 08.03.2018 / 15:20
1
answer

IndexError: list index out of range 4

I'm doing a program that seeks functions throws me this problem: while lista[a] != (' ' or '' or '\n' or '\t' ):    IndexError: list index out of range The whole program is this: def look_for_def (lista): i = 0 a = 0 func...
asked by 29.03.2018 / 13:57
1
answer

How to login with mail in Django?

I am trying to make a login in Django and I have seen that by default I can only log in with the username and password but due to the demands of my client it wants to be able to login with the email apart from the username. I have created a f...
asked by 28.03.2018 / 17:05
2
answers

Local variable 'client' referenced before assignment

I want to protect the view of a template, since I have several types of extended users with model User of Django, I find it difficult to work. I have already tried it in many ways but without success, this is one and it gives me error....
asked by 16.03.2018 / 02:41
1
answer

Error trying to install backports: "No matching distribution found for backports"

I'm trying to use backports testing the code given by Sachin Joglekar in a project on convolutional neural networks for a project to classify toxic comments . from backports import csv but when I try to load it with python2.7 or pyt...
asked by 11.03.2018 / 11:15
2
answers

Geometric Data

I'm calculating the geometric data from the latitude / longitude.    link consultaGeom = ('''select geometry::STGeomFromText('point('+left(?,12)+' '+left(?,12)+')' , 4326)'''); param = (latCIE,lngCIE) qu...
asked by 07.03.2018 / 15:57