Re: Hiring react developers

2021-05-10 Thread vineet daniel
Please share your resume with me on vineet.dan...@paymeindia.in

On Mon, 3 May 2021, 11:14 Akinfolarin Stephen, <
akinfolarinsteph...@gmail.com> wrote:

> Am a react developer .Am interested
>
> On Mon, May 3, 2021 at 6:11 AM vineet daniel 
> wrote:
>
>> Hi Group,
>>
>> Any one interested in Frontend development role using react?
>>
>> Please let me know.
>>
>> --
>> 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/CAJPbAW9RtG-KCB0sB68HeY_kDyscuWBVzg5bZ1WHNqtp21QRRw%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/CAFujGLxaY1s6yX7RiVksuEBJYJzregf_PpdZXJd-n0QcT9cEkA%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/CAJPbAW-AixdHzKjkAiKTtVyF%2BMc-C%2BvNh2c-ZnULwMhAVqoCpA%40mail.gmail.com.


Re: Report like "matrix with Django ORM

2021-05-10 Thread Walter Randazzo
The code in textlines: models &  view

https://del.dog/ohuxemockal

Thanks again,



El lun, 10 may 2021 a las 7:02, Luciano Martins ()
escribió:

> coloque seu code no github...
>
> Em domingo, 9 de maio de 2021 às 23:09:09 UTC-3, wwran...@gmail.com
> escreveu:
>
>> Hi dudes,
>>
>> I have to render a template with  a "matrix" data, I was trying to
>> perform it with querys in orm but i can´t figure out how because the
>> relationships of the models.
>>
>> The idea is to show the members and what's months are paid in a specific
>> year.
>>
>> *Template's out  to feed:*
>> [image: template.jpg]
>> *Models:*
>> [image: models.jpg]
>>
>> Any ideas about how to do this with queries?
>>
>> Thanks in Adcvance!!!
>>
> --
> 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/cecce065-1204-4c99-a54d-a51d1f6decd5n%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/CAL7Dry75jp-Vw_7Ztn%2Bx7dH-dxBU3oH8Ff0Xm7sT5bgBdS1%3DTQ%40mail.gmail.com.


Re: Report like "matrix with Django ORM

2021-05-10 Thread Walter Randazzo
Many thanks dude!

El lun., 10 may. 2021 3:58 p. m., Abdelrhman Elbershawi <
abdelrhmanelbersh...@gmail.com> escribió:

> I will try to figure it out and get back to you.
>
> On Mon, 10 May 2021 at 12:02, Luciano Martins  wrote:
>
>> coloque seu code no github...
>>
>> Em domingo, 9 de maio de 2021 às 23:09:09 UTC-3, wwran...@gmail.com
>> escreveu:
>>
>>> Hi dudes,
>>>
>>> I have to render a template with  a "matrix" data, I was trying to
>>> perform it with querys in orm but i can´t figure out how because the
>>> relationships of the models.
>>>
>>> The idea is to show the members and what's months are paid in a specific
>>> year.
>>>
>>> *Template's out  to feed:*
>>> [image: template.jpg]
>>> *Models:*
>>> [image: models.jpg]
>>>
>>> Any ideas about how to do this with queries?
>>>
>>> Thanks in Adcvance!!!
>>>
>> --
>> 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/cecce065-1204-4c99-a54d-a51d1f6decd5n%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/CAEuJ9wfLZ9xiREA259kgCRyZQWCvM3LPkiEBB2hqod4AiEvrdA%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/CAL7Dry78Jb3wWeRptxqCJzswyYiDOSuZEPJPkvEmc6GH6007AQ%40mail.gmail.com.


Re: Report like "matrix with Django ORM

2021-05-10 Thread Walter Randazzo
I will. thxs

El lun., 10 may. 2021 7:02 a. m., Luciano Martins 
escribió:

> coloque seu code no github...
>
> Em domingo, 9 de maio de 2021 às 23:09:09 UTC-3, wwran...@gmail.com
> escreveu:
>
>> Hi dudes,
>>
>> I have to render a template with  a "matrix" data, I was trying to
>> perform it with querys in orm but i can´t figure out how because the
>> relationships of the models.
>>
>> The idea is to show the members and what's months are paid in a specific
>> year.
>>
>> *Template's out  to feed:*
>> [image: template.jpg]
>> *Models:*
>> [image: models.jpg]
>>
>> Any ideas about how to do this with queries?
>>
>> Thanks in Adcvance!!!
>>
> --
> 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/cecce065-1204-4c99-a54d-a51d1f6decd5n%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/CAL7Dry6R4MOdVA%3DiC5xJ8W41Fm0xfTQWNVgeb1tWgVmQ6syQpw%40mail.gmail.com.


Re: Report like "matrix with Django ORM

2021-05-10 Thread Abdelrhman Elbershawi
I will try to figure it out and get back to you.

On Mon, 10 May 2021 at 12:02, Luciano Martins  wrote:

> coloque seu code no github...
>
> Em domingo, 9 de maio de 2021 às 23:09:09 UTC-3, wwran...@gmail.com
> escreveu:
>
>> Hi dudes,
>>
>> I have to render a template with  a "matrix" data, I was trying to
>> perform it with querys in orm but i can´t figure out how because the
>> relationships of the models.
>>
>> The idea is to show the members and what's months are paid in a specific
>> year.
>>
>> *Template's out  to feed:*
>> [image: template.jpg]
>> *Models:*
>> [image: models.jpg]
>>
>> Any ideas about how to do this with queries?
>>
>> Thanks in Adcvance!!!
>>
> --
> 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/cecce065-1204-4c99-a54d-a51d1f6decd5n%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/CAEuJ9wfLZ9xiREA259kgCRyZQWCvM3LPkiEBB2hqod4AiEvrdA%40mail.gmail.com.


I need help with getting latest object after filtering

2021-05-10 Thread Francis Akabo
Hi Everyone!
I am working on a project that is supposed to allow users to transfer files 
amongst each other. A transferred file can only be viewed by the user to 
whom the file has been transferred or an is_staff account.

*My Model*
class File(models.Model):
TYPES = (
('GENERAL', 'General'),
('PERSONAL', 'Personal'),
)
type = models.CharField(max_length=10, choices=TYPES, default='Personal')
no = models.CharField(max_length=250, unique=True, null=True)
name = models.CharField(max_length=250, unique=True, null=True)
created = models.DateTimeField(auto_now_add=True, null=True)
updated = models.DateTimeField(auto_now=True)
class Meta:
ordering = ('-created',)

def __str__(self):
return f'{self.no}'

def get_absolute_url(self):
return reverse('outgoing_file', args=[self.pk])

class Transfer(models.Model):
STATES = (
('OUTGOING', 'Outgoing'),
('INCOMING', 'Incoming'),
)
file = models.ForeignKey('File', on_delete=models.CASCADE, 
related_name='transfers')
state = models.CharField(max_length=10, choices=STATES, 
default='Outgoing')
file_from = models.ForeignKey(User, on_delete=models.SET_NULL, 
null=True, related_name='transfers_from')
file_to = models.ForeignKey(User, on_delete=models.SET_NULL, null=True, 
related_name='transfers_to')
recipient_name = models.CharField(max_length=250)
incoming_date = models.DateTimeField(auto_now=True)
due_date = models.DateTimeField(default=due_date(), null=True)
updated = models.DateTimeField(auto_now=True)
def __str__(self):
return f'{self.file_from} {self.file_to}'

*My Views*
@login_required
def outgoing_file_list(request):
if request.user.is_staff:
files = File.objects.all()
else:
files = File.objects.filter(transfers__file_to_id=request.user.id)

context = {
'files': files,
}
*NOTE:*
When the same file is transferred to a user multiple times, I want the 
query to return the newest item only. That to me will make the file 
accessible per user. Any recommended approach to achieve this is welcome.

*My Template*
**
*#*
*File Type*
*File Number*
*File Name*
*Recipient Name*
*Office Number*
*Transferred To*
*Outgoing Date*
*Due Date*
*Actions*
**
**
**
*{% for file in files %}*
**
*{{ forloop.counter }}*
*{{ file.type }}*
*{{ file.no }}*
*{{ file.name | title  }}*
*{{ file.transfers.recipient_name 
}}*
*{{ file.transfers.recipient_office 
}}*
*{{ file.transfer_to.get_full_name 
}}*
*{{ file.outgoing_date.date }}*
*{{ file.due_date | timeuntil }}*
**
*{% if request.user.is_staff %}*
**
*Receive*
**
**
*{% endif %}*

**
*Transfer*
**
**
**
**
*{% endfor %}*

*NOTE: All related fields in the table do not show ie.*
*file.transfers.recipient_name*
*file.transfers.recipient_office*
*file.transfer_to.get_full_name*
*and the remaining.*

Thanks.

-- 
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/801238dc-3aff-4bd6-8863-726eb024a163n%40googlegroups.com.


Re: Report like "matrix with Django ORM

2021-05-10 Thread Luciano Martins
coloque seu code no github...

Em domingo, 9 de maio de 2021 às 23:09:09 UTC-3, wwran...@gmail.com 
escreveu:

> Hi dudes,
>
> I have to render a template with  a "matrix" data, I was trying to perform 
> it with querys in orm but i can´t figure out how because the relationships 
> of the models.
>
> The idea is to show the members and what's months are paid in a specific 
> year.
>
> *Template's out  to feed:*
> [image: template.jpg]
> *Models:*
> [image: models.jpg]
>
> Any ideas about how to do this with queries?
>
> Thanks in Adcvance!!!
>

-- 
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/cecce065-1204-4c99-a54d-a51d1f6decd5n%40googlegroups.com.


Re: port access

2021-05-10 Thread Kasper Laudrup
On 10/05/2021 10.40, Aniket Gadge wrote:
> hii
>   i am using python server where http://127.0.0.1:8000/
>  this is my ip but it gives me a access denied
> when i want to access some file which is on my system while using server
>

Which server are you talking about? Python server doesn't say much, but
I assume you mean an HTTP server.

When you say "python server" do you mean the builtin HTTP server module:

https://docs.python.org/3/library/http.server.html

Or the Django development server?

And what do you mean by "file on your system"?

It is impossible for anyone to help you if you expect them to be able to
guess all this.

Kind regards,

Kasper Laudrup

-- 
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/b85d7b6f-def7-1e70-b397-99ba3dc53dd0%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: port access

2021-05-10 Thread Septo Suharyanto
Maybe your server isn't 127.0.0.1

Pada Senin, 10 Mei 2021, Aniket Gadge  menulis:

> hii
>   i am using python server where http://127.0.0.1:8000/ this is my ip but
> it gives me a access denied when i want to access some file which is on my
> system while using server
>
> --
> 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/CAAAecFs2pfcVHyVCMRLAMzNBTnFp6FiTX%2BMaVsYXdQe-U8CoHA%
> 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/CAHrViS4LahAx_rN%2Bvb9ApZRmMOaK%2B4JQnc%2BDbBfio7_QV3ON4w%40mail.gmail.com.


port access

2021-05-10 Thread Aniket Gadge
hii
  i am using python server where http://127.0.0.1:8000/ this is my ip but
it gives me a access denied when i want to access some file which is on my
system while using server

-- 
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/CAAAecFs2pfcVHyVCMRLAMzNBTnFp6FiTX%2BMaVsYXdQe-U8CoHA%40mail.gmail.com.