Questions tagged as 'python-2.7'

0
answers

Insert image in Field blob mysql python 2.7

I want to insert an image in a blob field of a mysql database with python 2.7 (MySQLdb) but it does not work, it does not show any specific error, it just does not insert the value, the table and the product exist, my code is as follows : #!/u...
asked by 15.08.2018 / 22:29
0
answers

How can I create report with Python from mongoDB Excel format?

I am looking for an option to generate a document in excel format, with information from a MongoDB database using the panda module, but until now I do not get it, it only generates the empty document and gives an error Code that I use: impo...
asked by 09.08.2018 / 15:01
0
answers

Download files with chrome dirver-Selenium in python?

What do I need to do? I need to download an excel in a specific route through my python code which I use selenium and chrome driver. What happens? Downloading the file well without hiding or putting it in the background does not work and does...
asked by 01.08.2018 / 17:12
0
answers

Django-Leaflet: First argument in 'static' must be 'as'

Recently I upgraded django from version 1.8 to 1.11 and I have problems with the static loads of the tool django-leaflet , this is the error: I have installed: Django == 1.11.14 django-geojson == 2.11.0 django-leaflet = =...
asked by 16.07.2018 / 18:50
0
answers

graph = Graph (g) NameError: name 'Graph' is not defined. HOW DO I RESOLVE IT?

introducir el código#TAD DE DIJKSTRA, algoritmo de caminos mínimos. #es un algoritmo para la determinación del camino más corto. #dado un vértice origen. #hacia el resto de los vértices en un grafo que tiene pesos en cada arista. ############...
asked by 28.06.2018 / 15:11
1
answer

Multiple Database django

Hi, I'm new to django, I'm working on a project where I use sql server 2008 myself, but I have a problem where I'm going to put the application will not always be connected to the same database server or to the same database data because they ha...
asked by 19.06.2018 / 19:15
1
answer

how to translate Latin characters to Html entities using flask

I'm using Flask, to capture a text with an Html form. In the form I have put the acept-encoding=ISO-8859-1 . But when in the form I type a tiny letter, it turns out that through the POST of the form, I get a UNICODE, with ordinal 65533. An...
asked by 03.06.2018 / 11:09
0
answers

Import Python from different folders in a root directory

Hi I have to create a script that is in the folder /folder/Scrip/lala/algo.py and the functions are in another folder with the following path: folder / funiconestipo1 / funciones.py, how can I import the functions to where is the script called s...
asked by 30.05.2018 / 19:03
0
answers

Generate several txt files in python

I'm new to python. I have a main file in which there is information stored in columns. I am asked to empty every 5 lines of this file into a new file. That is to say; lines 3-8 in file1.txt, lines 9-13 in file2.txt and so on until the lines in t...
asked by 23.05.2018 / 19:04
0
answers

Error connector Mysql with mariadb OX

I have Conflicts with when installing pip install Mysql-python it seems that the error is the connector with mariadb and I use the following:    Virtualenv    Python 2.7    Homebrew - > contains mariabd    macO...
asked by 23.05.2018 / 16:52