Questions tagged as 'python'

1
answer

Color my texts using python

Hello, I need that when I write a row with writerow in a file I put the text with a format or a color. And my other request could put color to a certain element of the list from python. I share the code with you: import csv def leer()...
asked by 22.07.2016 / 13:36
2
answers

Change the administrator interface of Django 1.9

I want to access my custom administration interface in Django and disable the default admin I have my own custom form to login. I would like that at the time of login, access my own personalized administration site. I do not want to use...
asked by 14.04.2016 / 15:32
1
answer

Error loading static folder in django with heroku

Good afternoon everyone, I present a problem regarding that you already configure the django application, so that it runs on heroku, this step is already achieved, but when you load the page, it does not load everything that contains the static...
asked by 30.03.2016 / 19:55
1
answer

cousin problem in python

Friends I need help with this code where I can be wrong? always tells me that the older cousin is in positions 0: '' 'Read 10 integers, store them in a list and determine in what positions of the list is the greatest number read first' '' t...
asked by 06.10.2018 / 17:26
1
answer

problem when opening IDLE: IDLE subprocess didnt make connection

This is what it says: IDLE subprocess didnt make connection. Either IDLE cant start a subprocess or personal firewall software is blocking the connection. Ps: I already tried the firewall     
asked by 18.09.2018 / 19:41
2
answers

does not return the str correctly in python

I have 2 classes one inherits from it to calculate the perimeter and surface of a figure, the problem is that the function of the special str method does not return all the methods correctly class Figura(object): def __init__(self,nombre):...
asked by 04.06.2018 / 19:09
1
answer

How to convert a for from C to python, "It has to be programmed in c"

I'm totally new to C and I need to send it to call a .txt and identify where a For is found, once that is identified for converting it into a python language example: My txt will have the following: #include <stdio.h> int main() {...
asked by 02.12.2017 / 20:54
1
answer

WSGI pythonanywhere file

I'm doing an application in django and now I use pythonanywhere to upload the example is a little practice but I have an error and I guess it is the directory tree. It is assumed that where I have the path of the file 'mySite.settings' but I hav...
asked by 27.05.2018 / 06:02
0
answers

Kivy, save contents of the Canvas in a StringIO

I am trying the following code ( link ): from random import random from kivy.app import App from kivy.uix.widget import Widget from kivy.graphics import Color, Ellipse, Line class MyPaintWidget(Widget): def on_touch_down(self, touch):...
asked by 01.05.2016 / 17:42
1
answer

An idea of how to create an array using functions

well I am a newbie and I am learning for python and I want to know if someone can help me with the creation of a matrix, that is, how could the code be if I want a matrix with functions, I have created it in this way easy : m=[[1,2,3], [4,5...
asked by 20.10.2017 / 08:03