Questions tagged as 'django'

0
answers

Forms in Django, help?

Is there a way to work with forms in a practical way in Django? The issue is that I'm creating a website on my own and since I knew Python, so I decided to use Django. "Everything" was fine until I tried to create a form signup for that s...
asked by 27.03.2018 / 19:47
0
answers

Show sum of graph objects - Django / Python / Sqlite

How to display a graph with the sum of objects with Django / Python / SQlite? In this case we have'internal_boxes '(y-axis) for' teams '(x-axis) that are rendering'internal_boxes' for each 'team' insert in the PCdastro model. Example genera...
asked by 05.04.2018 / 00:49
1
answer

Django View Class retains values

A curiosity that has been with me for a long time in Django and I never managed to heal: Next. Let's say I have something like: from django.shortcuts import render from django.views import View from pagina.models import Config class Basi...
asked by 28.03.2018 / 12:29
1
answer

Display manytomany in list_display in django

I'm trying to display some cont'd items in manytomany in the list display in django, but it is returning an error, follow the codes: Models.py class Apenso(models.Model): usuario = models.ForeignKey(User, blank=True) processo = models.On...
asked by 19.03.2018 / 20:42
1
answer

Redirect Http to Https - Nginx with let's encrypt

Currently, the domino link is working, but can not redirect link to Link using let's encrypt . I am following this tutorial: Link Below my setting: server { listen 80; listen 443 ssl; server_name meudominio.com www.m...
asked by 21.03.2018 / 14:30
0
answers

Get the html code of a certain class in django

I have some classes, among them the following: class Processo(models.Model): TIPO_PROCESSO = ( ('NORMAL', 'NORMAL'), ('TRANSMUTACAO', 'TRANSMUTACAO'), ('2a VIA', '2a VIA'), ) usuario = models.ForeignKey(User, blank=True) processo =...
asked by 13.03.2018 / 02:59
1
answer

DJANGO Rendering one FOR within another

I have a situation that is as follows: I need to do in one html TableA where I have to show the totals and line and the values that make up this totalizer, as a small example below Recipes = 100,000.00     Salaries = 60,000.00     Extras...
asked by 14.03.2018 / 02:56
1
answer

Image displayed on one machine, and another not in Django

I have an app in django that runs in two places, one at work, which is where there is effective production, and in my house, which is where I make adjustments because here I have time. The project is hosted on bitbucket and I always use the same...
asked by 01.03.2018 / 05:48
1
answer

Put data from an Excel spreadsheet in the database

The database here in the company generates an Excel report, I need to save this data in a database, initially sqlite3, to be able to display this data in a Django template in the future. Example of exel: Nome do profissional,"Situação atual...
asked by 27.02.2018 / 17:04
1
answer

How to ignore the migrations of django.contrib.auth?

I have a Django application where I want to customize the authentication part. I've already done my own Authentication backend as well as set up my own Model that will be used in authentication. The problem is that when I run the command...
asked by 23.02.2018 / 12:57