Django Search Between 2 Dates

2021-02-03 Thread Eugene TUYIZERE
Dear Team, I need help. I have a list of Items in a table. And I want to filter some data between dates (start and end date). Please help me to do a search between the two date. I am using Data table but I can use the other way if possible for this purpose. Regards, -- *TUYIZERE Eugene* *Msc

Re: Django app deployment

2021-02-03 Thread Eugene TUYIZERE
Dear Kasper, Thank you very much for the documentation. regards, On Mon, 1 Feb 2021 at 13:54, Kasper Laudrup wrote: > On 01/02/2021 12.49, Eugene TUYIZERE wrote: > > > > How to connect a django application to a Database that is on a different > > machine with an application file? I mean, if th

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
Hi... Normally i use field__lte and field__gte Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE escreveu: > Dear Team, > > I need help. I have a list of Items in a table. And I want to filter some > data between dates (start and end date). Please help me to do a search > between the two date. I a

Re: Django Search Between 2 Dates

2021-02-03 Thread Eugene TUYIZERE
Dear Thiago, Can I have some documentations or sample codes please? On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin wrote: > Hi... > Normally i use field__lte and field__gte > > Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE > escreveu: > >> Dear Team, >> >> I need help. I have a list of Ite

Re: Django Search Between 2 Dates

2021-02-03 Thread Steven Mapes
Are you looking at client-side filtering within datatables or server side filtering? Thiago's suggestion related to using filters when you fetch the queryset (https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-specific-objects-with-filters) On Wednesday, 3 February 2021 at 13:2

Re: Django rext framework join multiple table without nested data

2021-02-03 Thread Kelechi Divine
*I'm grateful for the images you've sent to me! It was helpful, and it's a good thing to receive a help at the moment!* On Tue, 2 Feb 2021 at 16:57, narendra thapa wrote: > here are the images of mine code by using the value > _list flat = True and with out it. > > i need a flatten json output n

Re: Hi

2021-02-03 Thread Kelechi Divine
The same problem that I am passing through! But in case you've seen any help somewhere then i'd appreciate if you'd share. On Thu, 28 Jan 2021 at 17:45, Sunday Iyanu Ajayi wrote: > Hi Florin, > > What support do you need? You can reach out via my email. > *AJAYI Sunday * > (+234) 806 771 5394 >

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
I will try to explain, although I am not a good teacher. Suppose you have an 'Example' model that has a 'data' field with 'auto_now_add = True' And a function 'yesterday()' that returns yesterday, and 'past()' that returns 'yesterday() minus some days'. if you want to filter items between yesterd

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
If you want clien-side, then you need to make some script-fu using jquery or anything like that. Em qua., 3 de fev. de 2021 às 10:40, Steven Mapes escreveu: > Are you looking at client-side filtering within datatables or server side > filtering? Thiago's suggestion related to using filters when

i have aproblem with my code

2021-02-03 Thread Agni Venus
data donot save anything when i input it from the website page. my views.py code from django.shortcuts import render from django.core.files.storage import FileSystemStorage from .models import profile def home(request): up=profile.objects.all() return render(request, 'home.html' ,{ 'up':up })

Re: Weird Django-admin bug

2021-02-03 Thread 'rossm6' via Django users
Sorry to hear this but there is absolutely no way anybody could help based on this information alone. On Tue, Feb 2, 2021 at 6:25 PM yes...@gmail.com wrote: > Hi > > I am having this situation where I try to have a look at an instance of a > specific model through Django-admin and the requests j

Re: i have aproblem with my code

2021-02-03 Thread Gabriel Araya Garcia
Agni: No, no, the information is not enough. Could you give us exactly which is your problem? you say that it is in a web environment, but what happens in your local host ? Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos El mié, 3 feb 2021 a las 15:41, Agni Venus () escribió: >