Questions tagged as 'python'

1
answer

Edit does not show the data in the input and select Django

Again here, I am now locked with the edit, I am sending the form with the model to the model but the input does not take the values, I have the name with the same name as in the model and nothing, I I have guided this example link , the modal t...
asked by 19.10.2017 / 15:01
2
answers

Selenium event click

I'm starting with Selenium and I'm doing tests on a website, but I find the following structure, and I can not click on the next one. It is a link inside a li tag. <li class="last"> <a onclick="sendFormWithOptionsCU(event, 'https...
asked by 01.11.2017 / 13:39
1
answer

Extract rows from a database

import pandas as pd datos=pd.read_csv('datos.csv', header=0 ) datos=(datos[datos.iloc[:,3]>=0]) anios1=datos[datos.iloc[:,2]==1975] Use this code to read a database, this database stores precipitation in a certain area every day every da...
asked by 18.10.2017 / 23:06
1
answer

Formulate Url with return variable in Django

I am currently taking a project in django implementing the jinja2 library, which I need to perform a hyperlink that returns a variable but it is giving me an error and I am not sure if it is because of the syntax. Template: <a href="{{ u...
asked by 13.10.2017 / 12:57
1
answer

OsError Python on Ubuntu

I have created a script with Python and when executing it, it responds with this message: Traceback (most recent call last): File "./pruebaHIDS.py", line 6, in <module> for filename in listdir("/Escritorio/Scripts"): OSError: [Errn...
asked by 09.10.2017 / 21:23
0
answers

How to save fingerprints in bd MySQL

I am working with the libfprint and pyfprint library for fingerprinting, but I have not yet been able to know how to save them in MySQL bd. Attached link GitHub of the program with which I am working. If someone can tell me how to do it, I would...
asked by 20.10.2017 / 17:12
0
answers

How to enable python in lighttpd manjaroOS?

Good afternoon friends of stackoverflow I have a giant doubt I would like to be able to enable on my server lighttpd python and if possible ruby to be able to study and perform web tests from flask and django. Here is my configuration code. P...
asked by 09.10.2017 / 18:32
0
answers

Module not found Error: forms wtforms

I'm learning Flask, making a form with wtforms , but by doing: import forms in my views.py file, where are the routes, I get it:    "ModuleNotFoundError: no module named 'forms'", and the forms.py file are in the same directory as...
asked by 08.10.2017 / 20:36
1
answer

Integrate the dictionary and complete the Python variables

I have this dic and I would like to work with him: Inventory_data = {"Inventario_datos": {"Alti MW $ 2 |": {"Floor_price": '2.5', "Li_platform": "1"                                                     "Excel_name": "Alti MW $ 2.xlsx", "Li_Publ...
asked by 06.10.2017 / 05:00
1
answer

Selenium element not visible Python

I am trying to log in to a site urgently through Selenium. All the sites in which I try to log in I could except this one. After putting this part of the code shows me a Python 2.7 error: Traceback (most recent call last): File "<stdin>...
asked by 04.10.2017 / 17:36