Questions tagged as 'python'

0
answers

Display data from sqlite3 table in a DataGridView

How will I show a DataGridView in Tkinter? I have the following code: from tkinter import * from tkinter import messagebox import sqlite3 root = Tk() root.title("Gestión BBDD") root.geometry("300x400+500+300") root.resizable(width=Fals...
asked by 23.07.2018 / 15:47
1
answer

Are there missing libraries in nltk.sem?

I wanted to design patterns that are sensitive to Part-Of-Speech (POS) tags from the Dutch section of CoNLL 2002 Named Entity Corpus which then does not contain only the entity annotation named. However, the method% co_of% who is supposed to pri...
asked by 23.07.2018 / 13:10
0
answers

Update Django Application Date?

I have an application in Django in which users enter a date by means of a calendar but the date shown on the calendar is always the same as the day I started the Django server. I explain if I start the server on 5/19/2018, the schedule of the...
asked by 24.07.2018 / 13:46
0
answers

Variables can not start with underscore in python / django

I'm doing an application with Python, Django and MongoDB, I'm just starting out. I'm trying to load a template with this user information, the query pulls perfectly: {% if users %} <ul> {% for user in users %} <li&g...
asked by 01.08.2018 / 19:52
0
answers

Heroku does not load statics files in Dejango framework

Heroku does not load statics files in Django framework Hello everyone, I am starting in the development of web applications with python 3.6 using the Django framework and I use the free Heroku service for tests, the issue is that after pushin...
asked by 27.07.2018 / 21:25
1
answer

explain the reason for invalid syntax please

I am developing my final project but now, for no apparent reason, it sends me syntax erro in the prefix impo- of an import. import sys import requests ^^^^(aqui me dice que error por ninguna razon aparente) import json import marshal import we...
asked by 27.07.2018 / 21:09
0
answers

I am creating a 3-band simulator game "billiards" and the problem is that I can limit the movement of the ball to only one side in Python won pygame

I'm doing a 3-band simulator game "billiards" and the problem is that I manage to limit the movement of the ball to one side, I enter the rest of the commands and those are no longer executed. * the instruction that carries an asterisk is the...
asked by 24.07.2018 / 23:53
1
answer

can not import name 'main' [install and update pip3]

After installing pip3 update it with sudo apt-get install python3-pip and pip3 install --upgrade pip , when installing any package or module, in this case 'future' reports me the error: $ pip3 install future Traceback (most rec...
asked by 22.07.2018 / 23:08
1
answer

Modify a csv file in python

I have a file in .csv and I want to add a name to each column without modifying its contents. How could I do it? Thank you very much.     
asked by 20.07.2018 / 20:47
0
answers

Can I format a string in a Django queryset?

I'm trying to simulate this stringformat "% s03d"% (name.upper (), number), in a Django query. It is not as easy as doing the field query in the model because it is not stored in the database. DummyModel.objects.all().annotate( format_str=...
asked by 20.07.2018 / 07:18