Posts by illozzaM • 157 points
13 posts
-
-1
votes1
answer113
viewsQ: Overlay the clickable area of a button on the page contents
Maybe someone can help me. The problem is that the clickable area of the green button is overwriting the links of social networks so that the user cannot click these. Code: <div…
-
0
votes1
answer231
viewsA: Gunicorn is not working as it is giving the following error gunicorn.service: Failed with result 'Exit-code'. error
Due to the error that is appearing, the system is having problems to load the Mysql connection library. Make sure you have not forgotten to install and if it is working properly.
-
-2
votes1
answer96
viewsQ: Python update on Debian
My machine runs Debian 9 and wanted to upgrade Python to the latest version without modifying the Debian version. It is possible to do this through some official repository or I will have to install…
-
0
votes2
answers883
viewsA: Decimal places in Django template
The obvious is often the last thing that comes to mind: var dados_grafico = [ [ 'Entradas', parseFloat('{{relatorio.grafico.entradas|floatformat:2}}'.replace(',', '.')),…
-
0
votes2
answers883
viewsQ: Decimal places in Django template
Good morning, everyone, I’m having a basic problem but apparently boring to solve: {% load l10n %} {% localize off %} var dados_grafico = [ [ 'Entradas',…
-
1
votes1
answer58
viewsA: if and Is between loan
I’m not sure I understand your question, but come on. From what I understand, you have the two classes (User and Business) that inherit from User and want to check in the template if the user who is…
-
1
votes1
answer66
viewsA: Access user data via Django template
In this situation, you need to use Trandinguser in the template as well. Example: <img src="{{request.user.tradinguser.avatar.url}}">
-
0
votes1
answer111
viewsQ: Complex filter with multiplications in the Django model
I have a doubt that I have from the beginning of a project that I am developing and I have not yet found an answer... I have 2 models in my project in Django: class Turma(models.Model): nome =…
-
0
votes0
answers274
viewsQ: Django form linked to registration
I have two tables in Django (Game and Goal) and I’m trying to create a form for them: class Jogo(models.Model): ativo = models.BooleanField(default = True) dataHoraInicio =…
-
2
votes0
answers35
viewsQ: Permissions for some commands and not for others
Good morning, everyone. Maybe this is a basic question but I have a question on Linux that I could not find by searching on Google. I have a Linux machine running a Nginx and with two users: marcos…
-
1
votes1
answer55
viewsA: Is it possible to post on facebook through my system?
So. For you to send posts to Facebook, it is necessary that your user or page give these permissions. The documentation for this procedure is here:…
-
0
votes1
answer110
viewsA: How to check the amount of object in an array?
Try this: if (minha_array.length > 0) { //true } else { //false }
-
2
votes1
answer125
viewsQ: Django View class keeps values
A curiosity that has accompanied 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…