Posts by Gabriel Cavalcanti • 47 points
5 posts
-
1
votes0
answers54
viewsQ: Problem when making a GET on my site when it is entered via www (React + Django)
I have a Jango application that uses React on one of your pages (not two separate Servers). On my React pages, I make HTTP requests to Django for the api using Django Rest Framework. This…
-
0
votes1
answer174
viewsQ: Changing how Forms.Validationerror is displayed in Django
It is possible to change the way the ValidationError is displayed? I noticed that the Django creates a tag <ul> and within it a tag <li> error. Can I change the way this is done? And if…
-
0
votes1
answer86
viewsQ: Storing past data - Django
My question is the following, in my application I have a profile template that has the following fields: Models py.: class Perfil(models.Model): nome = models.CharField(max_length=255, null=False)…
-
1
votes2
answers174
viewsQ: Doubt when ranking using Jango!
I’m making a site of a game using Jango and I want to make a ranking based on the score of all users! For now it’s like this: py views.: def index(request): perfis =…
-
2
votes1
answer721
viewsQ: How to call a class attribute in another Django class
I’m trying to create classes that will relate in a certain way. The idea is to be a game in which the player will have some options of choice and then your score is based on the score of your…