Re: Get datetime now, not at server initialisation

2020-11-01 Thread Clive Bruton



On 30 Oct 2020, at 11:00, Carles Pina i Estany wrote:


Let me know if it's not clear or if I explained something that you
didn't ask!


Thanks you very much for spending the time on this, to explain it to  
me - it was very helpful!



-- Clive

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/BBE7C073-E0A4-4927-8A7B-DA13861D40B4%40indx.co.uk.


django-filter according to logged user

2020-11-01 Thread Gabriel
Hi,

I am using the django_filters to filtering the information. However, it is 
showing the data of all logged user of my systems. I need show *only* the 
data of logged user. 

Follow the files:

*filters.py *

import django_filters
from apps.requisitos.models import Requisito

class RequisitoFilter(django_filters.FilterSet):
class Meta:
model = Requisito
fields = ['nomeRequisito', 'projeto']

*views.py*

class RequisitoList(ListView):
paginate_by = 10
model = Requisito

def get_queryset(self):
usuarioLogado = self.request.user
return Requisito.objects.filter(user=usuarioLogado)

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['filter'] = RequisitoFilter(self.request.GET, 
queryset=self.queryset)
return context

*the loop for of html page*

{% for requisito in filter.qs %}

thank you very much

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3f44722b-5b44-4fab-9d5b-26bc3a648ae7n%40googlegroups.com.


Re: hi

2020-11-01 Thread Frank Cipolone
Hey my dude

On Sun, Nov 1, 2020 at 3:10 PM Chris Franklin  wrote:

> Hii
>
> On Nov 1, 2020 21:26, "shahed info"  wrote:
>
>> Hi brother
>>
>> On Mon, Nov 2, 2020, 1:14 AM tyshan...@gmail.com 
>> wrote:
>>
>>>
>>> hi
>>>
>>> --
>>> 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 discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/cafbae0a-aa52-46ad-b483-5a7aedcc81b5n%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAO_JY3tjyu1v4cGK-Xcj9dis18cKtejay6sM%2B8Bk5xYp%2BOLAHA%40mail.gmail.com
>> 
>> .
>>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BXgZWaXCEzHqbykMaf8%3DdxCkxX-vEoLBF6LHPt77cKk4B9HHw%40mail.gmail.com
> 
> .
>
-- 
Best Regards,
Frank Cipolone

(856) 993-4819
fcipol...@gmail.com

https://www.redsnip8.host

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMxF4bzji0FGROYYbiaP2NTyHaMDv6gxKzG0sc%2BSDCUb6prVdA%40mail.gmail.com.


Re: hi

2020-11-01 Thread Chris Franklin
Hyy bro

On Nov 1, 2020 21:39, "Walter Randazzo"  wrote:

> HI there!
>
>
> El dom., 1 nov. 2020 a las 16:13, tyshan...@gmail.com (<
> tyshanchn...@gmail.com>) escribió:
>
>>
>> hi
>>
>> --
>> 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 discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/cafbae0a-aa52-46ad-b483-5a7aedcc81b5n%
>> 40googlegroups.com
>> 
>> .
>>
> --
> 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 discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAL7Dry75zKY0BFPPi0N%2BwrPRsPRRbcVzKp7U8b_
> KHQPnmy5gMw%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BXgZWZKoPE4hL59qVcrxhb5%3Di6gcuR5jVn%3DzWfVY7%3DTZ2JViA%40mail.gmail.com.


Re: hi

2020-11-01 Thread Chris Franklin
Hii

On Nov 1, 2020 21:26, "shahed info"  wrote:

> Hi brother
>
> On Mon, Nov 2, 2020, 1:14 AM tyshan...@gmail.com 
> wrote:
>
>>
>> hi
>>
>> --
>> 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 discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/cafbae0a-aa52-46ad-b483-5a7aedcc81b5n%
>> 40googlegroups.com
>> 
>> .
>>
> --
> 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 discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAO_JY3tjyu1v4cGK-Xcj9dis18cKtejay6sM%2B8Bk5xYp%
> 2BOLAHA%40mail.gmail.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BXgZWaXCEzHqbykMaf8%3DdxCkxX-vEoLBF6LHPt77cKk4B9HHw%40mail.gmail.com.


We use CharFields too much

2020-11-01 Thread rik...@gmail.com
https://djangodoctor.medium.com/thinking-charfield-youll-think-again-after-this-8d207abbca4d

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4604c342-1777-47a3-81e8-fa593c46ff37n%40googlegroups.com.


Re: hi

2020-11-01 Thread Walter Randazzo
HI there!


El dom., 1 nov. 2020 a las 16:13, tyshan...@gmail.com (<
tyshanchn...@gmail.com>) escribió:

>
> hi
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cafbae0a-aa52-46ad-b483-5a7aedcc81b5n%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL7Dry75zKY0BFPPi0N%2BwrPRsPRRbcVzKp7U8b_KHQPnmy5gMw%40mail.gmail.com.


Re: hi

2020-11-01 Thread shahed info
Hi brother

On Mon, Nov 2, 2020, 1:14 AM tyshan...@gmail.com 
wrote:

>
> hi
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cafbae0a-aa52-46ad-b483-5a7aedcc81b5n%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO_JY3tjyu1v4cGK-Xcj9dis18cKtejay6sM%2B8Bk5xYp%2BOLAHA%40mail.gmail.com.


Re: hi

2020-11-01 Thread Diksha Vazirani
Hii

On Mon, Nov 2, 2020, 12:44 AM tyshan...@gmail.com 
wrote:

>
> hi
>
> --
> 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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/cafbae0a-aa52-46ad-b483-5a7aedcc81b5n%40googlegroups.com
> 
> .
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM51YKud_neCAygYT6gNTa6PdEnSyAdO4m3bXCC%3DtAfaFNjUhw%40mail.gmail.com.


How get data from database to modal popup page in Django?

2020-11-01 Thread Fuad Suleymanov
Hi, I am new in Django, already ask my question in stackoverflow but don't 
get any answer, may be anyonecan help me.

https://stackoverflow.com/questions/64628802/how-get-data-from-database-to-modal-popup-page-in-django

Thanks in advance

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b565f068-d0ef-40d8-8116-97e2368d165an%40googlegroups.com.


hi

2020-11-01 Thread tyshan...@gmail.com

hi

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cafbae0a-aa52-46ad-b483-5a7aedcc81b5n%40googlegroups.com.