Posts by Chuck.h5 • 7 points
7 posts
-
0
votes2
answers22
viewsQ: Django queries Related Objects
So with two models created : class Questao(models.Model): texto = models.CharField(max_length=220) quiz = models.ForeignKey(Quiz, on_delete=models.CASCADE) created =…
-
0
votes1
answer30
viewsQ: Django Oauth2 Facebook autentication
When trying to include facebook login authorization on my site, I followed the steps taken in Django and similar documentations. And doing step by step, including the app in Settings…
-
-2
votes1
answer168
viewsQ: Type Object 'datetime.datetime' has no attribute 'datetime'
I have a view that matters some functions of a model, and when I import the model within the view, I have a problem with datetime. The function that exists in the model works perfectly, but in the…
-
0
votes1
answer23
viewsQ: Filter model datetime Django
I have a model that is basically the following : class Sample(models.Model): date = fields.DateField(auto_now=True) Now, with this I want to filter only the month in this model How I only get the…
-
0
votes0
answers19
viewsQ: Django Favorite view
I’m trying to create a favorite button for an app’s posts, but I can’t figure out how to create one because it contains an entire number. When the user clicks on the favorite button. The button will…
-
0
votes1
answer59
viewsQ: when trying to create a bank with flask_sqlalchemy Attributeerror: can’t set attribute
Making a Flask app, I had some difficulties with the database, and followed the following steps in VSCODE: I created a virtual environment, installed via Pip flask and other libs I created the first…
-
0
votes0
answers18
viewsQ: Variable error with Onehotencoder
When preprocessing a database, deleting part of the list, and reducing empty variables, one hot Encoder should classify the same database for the beginning of the ia tests. But it returns an error…