Questions tagged as 'python'

1
answer

Hello, I have a problem with the python lists

At the time of adding another list does not let me run it, I can not save the weight and height in LIST, as I do to save them, or as I would to save them elsewhere but. # -*- coding: utf-8 -*- import os animal = [] lista = [] zoologico = {...
asked by 30.11.2018 / 14:02
1
answer

How can I invert a string to check that it is palindrome with python?

Hello in advance I want to know how to invert a string to check that it is palindrome. Greetings. it occurred to me to do a for cycle and then each iteration to insert it in a list     
asked by 28.09.2017 / 22:56
1
answer

django AttributeError: 'EmailField' object has no attribute 'attrs'

here are my codes for forms.py ________________________ from django import forms from .models import Account class Usuario(forms.ModelForm): password=forms.PasswordInput() class Meta: model=Account fields=( 'email','u...
asked by 22.09.2016 / 04:14
1
answer

Scrapy can not find my spider

I have problems with Scrapy, for some reason when I run the project does not find my spider, but as much as I look at the code I can not find why. I had already used a similar code in another version of the code and found the spider. I leave...
asked by 29.10.2018 / 17:46
1
answer

I can not concatenate this

To obtain certain statistics of a route, it is requested to realize a program that given a distance, deliver the speed in kilometers per hour and in meters per second. For this, there are two time and distance variables that come in seconds and...
asked by 29.10.2018 / 22:17
1
answer

dictionaries in dictionary, Python 3

I have a dictionary with lists: d1 = { 'Carlos': { 'manzanas': ['12', 'verdes', '7', 'rojas', '5'], 'uvas': ['8', 'negras', '5', 'verdes', '3'] }, 'Juan': { 'manzanas': ['7', 'verdes', '5', 'rojas', '2'], 'uvas':...
asked by 23.10.2018 / 23:00
1
answer

Augmented Reality with django [closed]

I am learning about augmented reality and I am applying it in a project. For this I consult if it is possible to make use of augmented reality in Django.     
asked by 06.03.2016 / 18:01
0
answers

How to create a connection with Modbus TCP, Python and in turn create a Websocket?

I need to transmit real-time data from a variable x of a PLC via the Web, it is the best option to create a websocket, is there any Python library that allows me to help create something like this?     
asked by 05.01.2019 / 15:40
1
answer

How do I clean my Canvas in python after showing an image and being able to show a new one?

Hi, I would like to know how I can clean my canvas after having shown an image, place a name function to erase to be able to clean the image that was shown and to be able to select a new one and it will be displayed on the canvas. If someone can...
asked by 08.11.2018 / 01:03
1
answer

How can I add a counter and a cycle to a carousel in boostrap4 (django)?

I need help with the creation of a bootstrap4 carousel in django. The images of the carusel are loaded from the database, and the slider should be growing, showing the new images as well. Do I need to add a counter in the ol to assign the...
asked by 07.11.2018 / 18:42