ANYONE TO HELP ME ON HOW TO CREATE AN AUTOMATIC NOTIFICATION SYSTEM THAT SENDS A MESSAGE WHENEVER AN OBJECT IS CREATED OR MODIFIED

2023-08-22 Thread Byansi Samuel
My views from django.shortcuts import render def auto_notification(request): return render (request, "user/dashboard.html") My models from django.db import models from django.contrib.auth.models import User #articles model class Articles(models.Model): title = models.CharField(max_length=300)

Re: I have a problem with visual studio code

2023-05-02 Thread Byansi Samuel
gt; On Tue, 2 May 2023, 7:55 pm Vishesh Mangla, >> wrote: >> >>> Looks like issue is with pillow >>> >>> On Tue, 2 May, 2023, 22:17 Byansi Samuel, >>> wrote: >>> >>>> Which version of python do you use? >>>> >>&

Re: I have a problem with visual studio code

2023-05-02 Thread Byansi Samuel
Which version of python do you use? It's because of python. Change the version of your python from anyone you have been using and install Python 3.10, it will work fine and successful On Tue, May 2, 2023, 7:41 PM Stan Hiebah wrote: > Can i have a solution for this? > > -- > You received this

Re: How to show image(static) files.

2023-05-02 Thread Byansi Samuel
Your code is not wrong but just add "url" after static. Then it will work On Tue, May 2, 2023, 5:44 PM William Nash (Bill) wrote: > Try this. I'm still learning myself > > In your HTML file, you can use the img tag to display the image. > > > > To check if the QR code is true or false, you

Reverse for 'submit_review' with no arguments not found. 1 pattern(s) tried: ['submit_review/(?P[0-9]+)/\\Z']

2023-03-28 Thread Byansi Samuel
I got an error when trying to create a review form in Django and it returned to that title as the error in my browser. I have included a text file containing my codes and l would like to request assistance on how l can solve that issue, tanks, I'm Samuel -- You received this message because you

Re: How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-03-02 Thread Byansi Samuel
hne wrote: > Se comments below. > > > Den fre 24 feb. 2023 kl 12:14 skrev Byansi Samuel < > samuelbyans...@gmail.com>: > >> Hey everyone, l got a problem. Am trying to retrieve a single latest >> object added everytime, and display it in the template. >>

Re: Getting 4 four latest objects from django model

2023-02-27 Thread Byansi Samuel
lished_date')[:4]] > > > On Mon, 27 Feb 2023 at 16:52, Byansi Samuel > wrote: > >> I got a problem with my queryset. Am trying to get 4 latest objects from >> my model but it returns 1 objects the top latest. >> >> Below is my code. Any support and gui

Fwd: Getting 4 four latest objects from django model

2023-02-27 Thread Byansi Samuel
-- Forwarded message -- From: Date: Feb 27, 2023 11:49 AM Subject: Getting 4 four latest objects from django model To: Cc: I got a problem with my queryset. Am trying to get 4 latest objects from my model but it returns 1 objects the top latest. Below is my code. Any support

Getting 4 four latest objects from django model

2023-02-27 Thread Byansi Samuel
I got a problem with my queryset. Am trying to get 4 latest objects from my model but it returns 1 objects the top latest. Below is my code. Any support and guidance is appreciated. #action/views.py from Action.models import ActionGame latest_action= [ActionGame.objects.filter

How to retrieve the latest object added (new one) in Django models and display it in the template?

2023-02-24 Thread Byansi Samuel
Hey everyone, l got a problem. Am trying to retrieve a single latest object added everytime, and display it in the template. Below is my codes but; Help me figure it out the source of the problem in these different instances below  ___ issue number 1___

Re: HOW TO OUTPUT DATA GOT FROM combined queryset IN DJANGO TEMPLATE (html file) ?

2023-01-16 Thread Byansi Samuel
Thanks it worked but I would like to ask you, why did you use " game" in {%for game in combined_list %} ? En what is the role of 'game' On Sat, Jan 14, 2023, 8:35 PM Hector Mwaky wrote: > >1. > >In the windows_games view in others/views.py, you are using the >filter() method on

HOW TO OUTPUT DATA GOT FROM combined queryset IN DJANGO TEMPLATE (html file) ?

2023-01-12 Thread Byansi Samuel
Hey! Am having a problem. And l request for your Help. Am having 3 apps in Django project - action - adventure - others #action/ models.py class Action(models.Model): name=models.Charfield() os= models.Charfield( choices=OS) #adventure/models.py class