Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-03 Thread Raunak Ron
I am Interested.

On Monday 29 April 2024 at 19:45:53 UTC+5:30 Pankaj Saini wrote:

> I am interested in this position.
>
> I have an experience in Django Development with strong Python.
>
> On Tue, Apr 2, 2024, 10:49 PM Abhishek J  
> wrote:
>
>> Dear Developers,
>>
>> I need to build an android and IOS phone dialer similar to Truecaller.
>>
>> We are seeking experienced and dedicated candidates who are proficient in 
>> Django and possess a keen interest in contributing to this impactful 
>> initiative.
>>
>> We look forward to the opportunity to collaborate with talented 
>> individuals who are passionate about creating innovative solutions in the 
>> education sector.
>>
>> Thank you for considering this opportunity.
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAKkngwDHBygGho4gkHRhNkpVJf_d2UOkHQ%3DemN3BtcFSVRU8sA%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/b0b71507-abfb-4c45-8701-92ef9f972affn%40googlegroups.com.


Newbie

2024-05-03 Thread Cindy Pearl Soriano
Hello everyone, can somebody help how to make an interactive site sor 
logging system?
-- 
---*DISCLAIMER AND CONFIDENTIALITY NOTICE* The Mindanao State 
University-Iligan Institute of Technology  
(MSU-IIT) makes no warranties of any kind, whether expressed or implied, 
with respect to the MSU-IIT e-mail resources it provides. MSU-IIT will not 
be responsible for damages resulting from the use of MSU-IIT e-mail 
resources, including, but not limited to, loss of data resulting from 
delays, non-deliveries, missed deliveries, service interruptions caused by 
the negligence of a MSU-IIT employee, or by the User's error or omissions. 
MSU-IIT specifically denies any responsibility for the accuracy or quality 
of information obtained through MSU-IIT e-mail resources, except material 
represented as an official MSU-IIT record. Any views expressed in this 
e-mail are those of the individual sender and may not necessarily reflect 
the views of MSU-IIT, except where the message states otherwise and the 
sender is authorized to state them to be the views of MSU-IIT. The 
information contained in this e-mail, including those in its attachments, 
is confidential and intended only for the person(s) or entity(ies) to which 
it is addressed. If you are not an intended recipient, you must not read, 
copy, store, disclose, distribute this message, or act in reliance upon the 
information contained in it. If you received this e-mail in error, please 
contact the sender and delete the material from any computer or system.

-- 
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/5b767106-50e4-42fa-9156-b904921c4e8bn%40googlegroups.com.


Re: Displaying contrast of a queryset

2024-05-03 Thread Abdou KARAMBIZI
ThanksKelvin Macharia

Now it is working properly

On Wed, May 1, 2024 at 9:24 PM Kelvin Macharia 
wrote:

> Actually:
> Query for tasks without relations to Product
>
> tasks = Task.objects.filter(product__isnull=True)
>
> after setting product field optional in as follows:
>
> product = models.ForeignKey(Product, on_delete=models.CASCADE, null=True,
> blank=True)
>
> On Wednesday, May 1, 2024 at 4:59:46 PM UTC+3 Ryan Nowakowski wrote:
>
>> Products.objects.filter(task_set__isnull=True)
>>
>>
>> On April 28, 2024 8:57:57 AM CDT, manohar chundru <
>> chundrumanoh...@gmail.com> wrote:
>>
>>> print(p)
>>>
>>> On Sun, Apr 28, 2024 at 12:25 AM Abdou KARAMBIZI 
>>> wrote:
>>>
 Hello friends,

 products = Task.objects.select_related().all()
 for p in products:
 print(p.product.product_name)

 This gives product that has relation in Task model but *I need product
 which doesn't have relation in Task *

 *Means we have products have relations in Task model and others with no
 relation in Task model and I need a queryset to display those with no
 relations in Task *




 On Sat, Apr 27, 2024 at 4:57 PM Kelvin Macharia 
 wrote:

> Before I share my thoughts here is a question for you. Where do you
> expect your product to be printed out?
>
> Here is what I think you should try out.
>
> First, the source code looks correct to me. Your view only get
> triggered when you access the routes(url) pointing to this view via the
> browser and this doesn't rerun server to print result on your console so
> you won't see anything get printed on the console. I presume you could be
> thinking of running a django app like you do with ordinary python scripts,
> your right but django is a python framework which requires specifics
> configurations to get results.
>
> To test your code and see products get printed out try this:
>
> 1. Use a template. Modify your view as follows:
>
> def product_task(request):
> products = Task.objects.select_related().all()
> context = {'products': products}
>
> return render(request, 'product-task.html', context)
>
> Create the template, configure routes in urls.py to point to this view
> and access through browser. Remember to add dummy data in your db
>
> 2. To print out your products using a for loop, use the django shell
> using '*python manage.py shell*'
>
> e.g.
> (.venv)
> python manage.py shell
> Python 3.12.2 (tags/v3.12.2:6abddd9, Feb  6 2024, 21:26:36) [MSC
> v.1937 64 bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> (InteractiveConsole)
> >>> from stores.models import Task, Product
> >>> products = Task.objects.select_related().all()
> >>> for p in products:
> ... print(p.product.product_name)
> ...
> Coffee
> Banana Bread
>
> Note:
> 1. Stores refers to a dummy app I have created to host models.py.
> 2. Coffee and Banana Bread are just products I have added as dummy
> data.
>
> Hopes this help or atleast gives a guide somehow
>
> On Friday, April 26, 2024 at 5:22:26 PM UTC+3 Muhammad Juwaini Abdul
> Rahman wrote:
>
>> You're looking for `product`, but the model that you queried is
>> `Task`.
>>
>> On Fri, 26 Apr 2024 at 17:40, Abdou KARAMBIZI 
>> wrote:
>>
>>> Hello,
>>> *I have 2 models :*
>>>
>>> class Product(models.Model):
>>> product_id = models.AutoField(primary_key=True)
>>> product_name = models.CharField(max_length=200)
>>> price = models.IntegerField()
>>> image =
>>> models.ImageField(upload_to='images/products_images/',null=True,blank=True)
>>>
>>>
>>> def __str__(self):
>>> return self.product_name
>>>
>>>
>>> class Task(models.Model):
>>> task_id = models.AutoField(primary_key=True)
>>> user = models.ForeignKey(User,on_delete = models.CASCADE)
>>> product = models.ForeignKey(Product,on_delete=models.CASCADE)
>>> performed_at = models.DateTimeField(auto_now_add=True)
>>>
>>> def __int__(self):
>>> return self.task_id
>>>
>>> *and I have following view with queryset  :*
>>>
>>> def product_task (request):
>>> product = Task.objects.select_related().all()
>>> for p in product:
>>> print(p.product.product_name)
>>>
>>>
>>> *I want to get products don't appear in task model*
>>>
>>>
>>> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>>