Questions tagged as 'python'

0
answers

Background execution with Django Python

I have a web based system in Django (Python). In this app I need to show some dynamic values coming from a remote device, in which I need to make some requests every 2 minutes to log the values in the database and generate some of these tips as...
asked by 23.06.2017 / 19:12
1
answer

Web Data Extraction with Scrapy

Up .. Next guys ... I am writing a code with Framework scrapy to fetch and extract some data. I'm new to this! The following code would theoretically have to fetch and extract, but it does not extract the data when I run it. I'm using the class...
asked by 05.07.2017 / 04:12
0
answers

How to create a function to read line by line from text file?

How to create a function to open a text file, read a line and out of function created, handle that line? So following the treatment, re-run the function created to read the next line in the text file and so on?     
asked by 21.06.2017 / 02:34
1
answer

How to create a SQL function that calls a script in python?

I need to create software that each insert into a table a script in python detect that there has been change in this table and execute certain commands. I've already done an implementation that stands all the time testing if there was a change i...
asked by 22.06.2017 / 19:58
0
answers

Is giving error ImportError at / post / new / No module named 'blog.forms'

In this line: C: \ Users \ Fer Gomes \ djangogirls \ mysite \ blog \ views.py in, line 5 the code from django.shortcuts import render from django.utils import timezone from .models import Post from django.shortcuts import render, get_object_or...
asked by 22.06.2017 / 06:05
1
answer

Create visual uploads in python

Like this: | ----- |     90% Where it loads in the seconds I specify. Only for visual use, because I want to make an aesthetic effect only:) Where the lines are the ends of the loading bar and the hyphens progress, where I want to displ...
asked by 10.06.2017 / 16:30
1
answer

Python No if error

I'm having an error in if and I do not know how to fix this error, I'm using Python 3.6 and Pandas for reading, writing and data analysis. df1 = pd.read_csv("JonnyTheBoy10.csv", usecols=['ART_TIPO', 'ART_DESIG', 'PORTA', 'CP4', 'CP3', 'LOCALID...
asked by 09.06.2017 / 11:05
1
answer

Which method to send email in Python?

for row in values: # Separei os valores da data em 3 variaveis temp. year = int(row[0][6:10]) moth = int(row[0][0:2]) day = int(row[0][3:5]) if day == d1.day and moth == d1.month and year == d1.year:...
asked by 09.06.2017 / 15:40
1
answer

How to use Python integrated with .CSV

Good morning. I have to read a field (line) from a file in .csv and fill a certain field in the system. How should I do? For example, my .csv is mass of data for filling in a record.     
asked by 21.06.2017 / 18:19
1
answer

Connect Flask Restless API to React (Admin-on-rest)

I'm learning to work with flask and react to create a rest API (with flask-restless) and a Client (with React, Admin-on-rest). I've already created Api in Flask with Reastless. I am looking for some advice to connect the API to the client, bu...
asked by 20.06.2017 / 12:29