Posts by fabimetabi • 39 points
5 posts
-
0
votes1
answer150
viewsQ: How to sort the result of a query by a column where there is a value in another column in the same table?
I have a table with several columns, and I want to sort the results by the values of one column where another column in the same table is equal to a value. I have tried implementing the query with…
-
2
votes1
answer132
viewsQ: How to stop the translator google dropdown from disappearing?
I’m trying to implement the translator google dropdown, within a button. Now by clicking on the translator google dropdown, it does not show the countries/languages. Here’s the code I’m currently…
-
0
votes1
answer196
viewsQ: How to filter an Apiview to show messages related to a user?
I want to create a view using Apiview, which shows all messages sent by a user specified in the url. py.models: class Message(models.Model): body = models.CharField(max_length=500) normaluser =…
-
0
votes2
answers1736
viewsQ: How to call a view method in html?
I created the following method in the views.py file: def home(request): name = 'Jacinto' args = {'myName' : name} return render(request, 'accounts/home.html', args) I now want to call this function…
-
1
votes1
answer2284
viewsQ: Error 1452 mysql: Cannot add or update a Child Row
I created the following tables and populated in 2 (user and type); CREATE: CREATE TABLE utilizador(utilizador_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,username VARCHAR(100) NOT NULL, password…