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 (os='windows',

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 an

Re: Getting 4 four latest objects from django model

2023-02-27 Thread Muhammad Juwaini Abdul Rahman
latest_action= [ActionGame.objects.filter (os='windows', category='action').latest ('published_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. > > Belo

Re: Getting 4 four latest objects from django model

2023-02-27 Thread Byansi Samuel
Thanks but it returned an error that, 'ActionGame' is not subcriptabe Do you have a way of solving this typerror? On Feb 27, 2023 11:55 AM, "Muhammad Juwaini Abdul Rahman" wrote: > latest_action= [ActionGame.objects.filter (os='windows', > category='action').latest ('published_date')[:4]] > >

Error loading static file from a NAS (CIFS mounted) Not 404...

2023-02-27 Thread Hua Liang
Hello, I have a django site and I have two storages serving static files. One is a hard drive attached to the server and the other is a NAS share. Both are mounted and I can view the files in Ubuntu without any problems. Both are linked to Django static folder. The problem is that when I tried

django

2023-02-27 Thread Ikrombek
Hello Can I create strongest dashboard with django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discu

Re: django

2023-02-27 Thread Benjamin Telford
Hello. lkrombek I have just read your email, and the answer of your email is "Yes." I can help you to create the wonderful dashboard using frontend framework such as React, Vue and Angular etc. Also, you can use the dashboard that be provided by Django My experience will be helpful for your issue.

Re: django

2023-02-27 Thread OSP PRO
Yes, Django is much trustworthy admin dashboard, than other frameworks. On Mon, Feb 27, 2023 at 5:29 PM Ikrombek wrote: > Hello > Can I create strongest dashboard with django > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscri

Re: django

2023-02-27 Thread Abhishek ozha
I just created a normal school name adding API and how do I add role based authentication In that On Mon, Feb 27, 2023, 8:24 PM OSP PRO wrote: > Yes, Django is much trustworthy admin dashboard, than other frameworks. > > On Mon, Feb 27, 2023 at 5:29 PM Ikrombek wrote: > >> Hello >> Can I create

List validator

2023-02-27 Thread Larry Martell
I have this defined in my serializer: case_status = serializers.ListField( child=serializers.CharField( allow_blank=True, max_length=512, allow_null=True, required=False, default="''", ), source='casestatus',

Getting InspectDB to work with postgres

2023-02-27 Thread Kyle Wan
Hi, I'm new to Django, and I'm struggling to get inspectdb to populate postgres models as json, hstore, or array objects. I have put `django.contrib.postgres` under the INSTALLED_APPS and I have psycopg2 installed. I have set my engine to be postgresql and am able to use the makemigration and

Re: Error loading static file from a NAS (CIFS mounted) Not 404...

2023-02-27 Thread Hua Liang
Okay I think I know the problem. Apache2 has a bug with CIFS, set EnableMMAP Off in config will solve this. On Monday, February 27, 2023 at 6:29:12 AM UTC-8 Hua Liang wrote: > Hello, > > I have a django site and I have two storages serving static files. > One is a hard drive attached to the serv

Need way of authentication with google without using an allauth packages

2023-02-27 Thread MaheshKumar
I need how to create an google authentication without using the django -allauth packages. Please give me an idea to create an flow of authentication with google in django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th