Re: How to use different templates for different sites/domains

2024-05-28 Thread Mike Dewhirst

On 28/05/2024 9:09 pm, Antonis Christofides wrote:

Hello,

I use the sites framework for a Django project that serves many 
different domains. But each of those domains has some templates 
overridden.


Might depend on what you are overriding - entire templates or just 
includes or just vars.


I would probably start by refactoring the templates so they were 
identical for all sites and reduce/extract the differences to includes 
which can be selected via contextvars after calling get_current_site() 
from the view.


Have you looked at template tags?

I use them for displaying additional information on the staging and dev 
sites versus production. Not what you are doing so I haven't thought too 
hard about that. Only worth a thought if you haven't considered it.




If I used a different instance of Django (i.e. a different gunicorn 
service) for each domain, I'd have different settings for each site. 
But I'm using a single instance to serve all sites and, wherever I 
need to, I use things that extract the domain from the request, like 
`get_current_site()`. But this doesn't seem to work with templates. A 
custom template loader won't work without a fight because its methods 
don't accept the request object as an argument.


All solutions I've thought about are ugly hacks.


Practicality beats purity

The least ugly seems to be to create middleware that stores the 
request object in a contextvar 
. But it strikes 
me that I can't find a simpler solution for this. Is what I want that 
uncommon, or am I missing something?


There's an old closed "wontfix" ticket 
 about this but without 
adequate explanation.

--
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/175b4601-2038-479b-9581-48d9c196df7cn%40googlegroups.com 
.



--
We recommend signal.org

Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Your
email software can handle signing.

--
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/befa4ac2-40b8-44da-87c2-cbbe3ed307c6%40dewhirst.com.au.


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: Django Admin Shortcuts

2024-05-28 Thread utibe solomon
Hey bro is it possible to authenticate an auto generated user from
inspect_db without necessarily having to migrate fields that come with
using abstractbaseuser and permissions mixin


On Tue, 28 May 2024 at 20:39, Mike Schem  wrote:

> Hey Faisal,
>
> Thanks for taking the time to read the PR and provide some feedback. I
> copied all of your concerns here and responded to them accordingly. Please
> let me know if you have any further questions!
>
> 1.
> Have you considered including a section in the Django admin documentation
> that outlines the new shortcuts and how to use them?
>
> Yes, I absolutely will document this, I was thinking about adding it to
> the "Other Topics" section here:
> https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#other-topics.
> What do you think?
>
> 2.
>  Are the keyboard shortcuts configurable?
>
> Not yet, but I would be open to doing this as a future PR.
>
> 3.
> Have you tested the keyboard shortcuts across different browsers and
> operating systems to ensure consistent behavior?
>
>  Any specific browsers or versions where you faced issues?
>
> Yes, we've tested on pretty much all major OSs and browsers and have seen
> consistent behavior.  I've been running this in my company for over a year
> now. It's been great!
>
> 4.
> What considerations have been made regarding accessibility?
>
> I'd say this is largely an accessibility feature since it would allow for
> the visually impaired to save without needing to see the save buttons,
> which is great!
>
> 5.
> How does the implementation handle potential conflicts with existing
> browser or system shortcuts?
>
> There is an existing ctrl + S for saving browser pages as HTML, frakely, I
> don't think that should be the default for users. When saving the page, the
> action should not be to save it as html, but instead save the content of
> the admin.
>
> 6.
> Have you noticed any performance impacts with the addition of these
> shortcuts? Ensuring that the admin interface remains performant is
> important for all users.
>
> No, no performance issues. It's a very simple code change without much
> impact.
>
> On Sat, May 25, 2024 at 7:25 AM Faisal Mahmood 
> wrote:
>
>> Hi *Mike Schem,
>>
>> Thank you for reaching out and for your work on adding keyboard shortcuts
>> to the Django admin. This is a valuable feature that can greatly enhance
>> productivity for many users. We appreciate your contribution and the effort
>> you've put into this PR.
>>
>> We have reviewed your pull request and are excited about its potential.
>> Here are some thoughts and questions we have:
>>
>> 1.
>> Have you considered including a section in the Django admin documentation
>> that outlines the new shortcuts and how to use them?
>>
>> 2.
>>  Are the keyboard shortcuts configurable?
>>
>> 3.
>> Have you tested the keyboard shortcuts across different browsers and
>> operating systems to ensure consistent behavior?
>>
>>  Any specific browsers or versions where you faced issues?
>>
>> 4.
>> What considerations have been made regarding accessibility?
>>
>> 5.
>> How does the implementation handle potential conflicts with existing
>> browser or system shortcuts?
>>
>> 6.
>> Have you noticed any performance impacts with the addition of these
>> shortcuts? Ensuring that the admin interface remains performant is
>> important for all users.
>>
>> We believe these questions can help further refine the feature and ensure
>> it meets the needs of the wider Django community. Once again, thank you for
>> your contribution. We look forward to your responses and further discussion.
>>
>> Best regards,
>> [Faisal Mahmood]
>>
>> On Fri, May 24, 2024, 10:32 PM Mike Schem 
>> wrote:
>>
>>> Hey all,
>>>
>>> I’m seeking some support and feedback on my PR. I’ve added keyboard
>>> shortcuts to the Django admin for the save actions. We use it at my
>>> company, and it’s pretty helpful for power users. I’d love to hear what the
>>> community thinks.
>>>
>>> https://github.com/django/django/pull/17599
>>>
>>>
>>> Mike Schem
>>> Senior Software Engineer
>>> String King Lacrosse, LLC
>>> StringKing, Inc.
>>> 19100 South Vermont Avenue
>>> 
>>> Gardena, CA  90248
>>> 
>>> 310-699-7175 Mobile
>>>
>>> m...@stringking.com 
>>> StringKing.com  | uSTRING.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/CALUzFO1GyhQct422sU6WDRC3ksYf-qg8qgtR%2BwXGOwrjWDn2_A%40mail.gmail.com
>>> 

Re: Django Admin Shortcuts

2024-05-28 Thread Faisal Mahmood
█▀ █▀█ █▀█ █░
█▄ █▄█ █▄█ █▄

That's great to hear keep it up. And have  a great day ahead.
I'm nothing but a student of Django.
Hopefully my questions doesn't bother you too much. 


Great!

And once again thanks a lot for your hard work.
I will be glad if you need any assistance from me in the future.

Regards
Faisal Mahmood
faisalbhagri2...@gmail.com
WhatsApp:   +923013181026



On Wed, May 29, 2024, 12:38 AM Mike Schem  wrote:

> Hey Faisal,
>
> Thanks for taking the time to read the PR and provide some feedback. I
> copied all of your concerns here and responded to them accordingly. Please
> let me know if you have any further questions!
>
> 1.
> Have you considered including a section in the Django admin documentation
> that outlines the new shortcuts and how to use them?
>
> Yes, I absolutely will document this, I was thinking about adding it to
> the "Other Topics" section here:
> https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#other-topics.
> What do you think?
>
> 2.
>  Are the keyboard shortcuts configurable?
>
> Not yet, but I would be open to doing this as a future PR.
>
> 3.
> Have you tested the keyboard shortcuts across different browsers and
> operating systems to ensure consistent behavior?
>
>  Any specific browsers or versions where you faced issues?
>
> Yes, we've tested on pretty much all major OSs and browsers and have seen
> consistent behavior.  I've been running this in my company for over a year
> now. It's been great!
>
> 4.
> What considerations have been made regarding accessibility?
>
> I'd say this is largely an accessibility feature since it would allow for
> the visually impaired to save without needing to see the save buttons,
> which is great!
>
> 5.
> How does the implementation handle potential conflicts with existing
> browser or system shortcuts?
>
> There is an existing ctrl + S for saving browser pages as HTML, frakely, I
> don't think that should be the default for users. When saving the page, the
> action should not be to save it as html, but instead save the content of
> the admin.
>
> 6.
> Have you noticed any performance impacts with the addition of these
> shortcuts? Ensuring that the admin interface remains performant is
> important for all users.
>
> No, no performance issues. It's a very simple code change without much
> impact.
>
> On Sat, May 25, 2024 at 7:25 AM Faisal Mahmood 
> wrote:
>
>> Hi *Mike Schem,
>>
>> Thank you for reaching out and for your work on adding keyboard shortcuts
>> to the Django admin. This is a valuable feature that can greatly enhance
>> productivity for many users. We appreciate your contribution and the effort
>> you've put into this PR.
>>
>> We have reviewed your pull request and are excited about its potential.
>> Here are some thoughts and questions we have:
>>
>> 1.
>> Have you considered including a section in the Django admin documentation
>> that outlines the new shortcuts and how to use them?
>>
>> 2.
>>  Are the keyboard shortcuts configurable?
>>
>> 3.
>> Have you tested the keyboard shortcuts across different browsers and
>> operating systems to ensure consistent behavior?
>>
>>  Any specific browsers or versions where you faced issues?
>>
>> 4.
>> What considerations have been made regarding accessibility?
>>
>> 5.
>> How does the implementation handle potential conflicts with existing
>> browser or system shortcuts?
>>
>> 6.
>> Have you noticed any performance impacts with the addition of these
>> shortcuts? Ensuring that the admin interface remains performant is
>> important for all users.
>>
>> We believe these questions can help further refine the feature and ensure
>> it meets the needs of the wider Django community. Once again, thank you for
>> your contribution. We look forward to your responses and further discussion.
>>
>> Best regards,
>> [Faisal Mahmood]
>>
>> On Fri, May 24, 2024, 10:32 PM Mike Schem 
>> wrote:
>>
>>> Hey all,
>>>
>>> I’m seeking some support and feedback on my PR. I’ve added keyboard
>>> shortcuts to the Django admin for the save actions. We use it at my
>>> company, and it’s pretty helpful for power users. I’d love to hear what the
>>> community thinks.
>>>
>>> https://github.com/django/django/pull/17599
>>>
>>>
>>> Mike Schem
>>> Senior Software Engineer
>>> String King Lacrosse, LLC
>>> StringKing, Inc.
>>> 19100 South Vermont Avenue
>>> 
>>> Gardena, CA  90248
>>> 
>>> 310-699-7175 Mobile
>>>
>>> m...@stringking.com 
>>> StringKing.com  | uSTRING.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 

Re: Django Admin Shortcuts

2024-05-28 Thread Mike Schem
Hey Faisal,

Thanks for taking the time to read the PR and provide some feedback. I
copied all of your concerns here and responded to them accordingly. Please
let me know if you have any further questions!

1.
Have you considered including a section in the Django admin documentation
that outlines the new shortcuts and how to use them?

Yes, I absolutely will document this, I was thinking about adding it to the
"Other Topics" section here:
https://docs.djangoproject.com/en/5.0/ref/contrib/admin/#other-topics. What
do you think?

2.
 Are the keyboard shortcuts configurable?

Not yet, but I would be open to doing this as a future PR.

3.
Have you tested the keyboard shortcuts across different browsers and
operating systems to ensure consistent behavior?

 Any specific browsers or versions where you faced issues?

Yes, we've tested on pretty much all major OSs and browsers and have seen
consistent behavior.  I've been running this in my company for over a year
now. It's been great!

4.
What considerations have been made regarding accessibility?

I'd say this is largely an accessibility feature since it would allow for
the visually impaired to save without needing to see the save buttons,
which is great!

5.
How does the implementation handle potential conflicts with existing
browser or system shortcuts?

There is an existing ctrl + S for saving browser pages as HTML, frakely, I
don't think that should be the default for users. When saving the page, the
action should not be to save it as html, but instead save the content of
the admin.

6.
Have you noticed any performance impacts with the addition of these
shortcuts? Ensuring that the admin interface remains performant is
important for all users.

No, no performance issues. It's a very simple code change without much
impact.

On Sat, May 25, 2024 at 7:25 AM Faisal Mahmood 
wrote:

> Hi *Mike Schem,
>
> Thank you for reaching out and for your work on adding keyboard shortcuts
> to the Django admin. This is a valuable feature that can greatly enhance
> productivity for many users. We appreciate your contribution and the effort
> you've put into this PR.
>
> We have reviewed your pull request and are excited about its potential.
> Here are some thoughts and questions we have:
>
> 1.
> Have you considered including a section in the Django admin documentation
> that outlines the new shortcuts and how to use them?
>
> 2.
>  Are the keyboard shortcuts configurable?
>
> 3.
> Have you tested the keyboard shortcuts across different browsers and
> operating systems to ensure consistent behavior?
>
>  Any specific browsers or versions where you faced issues?
>
> 4.
> What considerations have been made regarding accessibility?
>
> 5.
> How does the implementation handle potential conflicts with existing
> browser or system shortcuts?
>
> 6.
> Have you noticed any performance impacts with the addition of these
> shortcuts? Ensuring that the admin interface remains performant is
> important for all users.
>
> We believe these questions can help further refine the feature and ensure
> it meets the needs of the wider Django community. Once again, thank you for
> your contribution. We look forward to your responses and further discussion.
>
> Best regards,
> [Faisal Mahmood]
>
> On Fri, May 24, 2024, 10:32 PM Mike Schem 
> wrote:
>
>> Hey all,
>>
>> I’m seeking some support and feedback on my PR. I’ve added keyboard
>> shortcuts to the Django admin for the save actions. We use it at my
>> company, and it’s pretty helpful for power users. I’d love to hear what the
>> community thinks.
>>
>> https://github.com/django/django/pull/17599
>>
>>
>> Mike Schem
>> Senior Software Engineer
>> String King Lacrosse, LLC
>> StringKing, Inc.
>> 19100 South Vermont Avenue
>> 
>> Gardena, CA  90248
>> 
>> 310-699-7175 Mobile
>>
>> m...@stringking.com 
>> StringKing.com  | uSTRING.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/CALUzFO1GyhQct422sU6WDRC3ksYf-qg8qgtR%2BwXGOwrjWDn2_A%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
> 

How to use different templates for different sites/domains

2024-05-28 Thread Antonis Christofides
Hello,

I use the sites framework for a Django project that serves many different 
domains. But each of those domains has some templates overridden.

If I used a different instance of Django (i.e. a different gunicorn 
service) for each domain, I'd have different settings for each site. But 
I'm using a single instance to serve all sites and, wherever I need to, I 
use things that extract the domain from the request, like 
`get_current_site()`. But this doesn't seem to work with templates. A 
custom template loader won't work without a fight because its methods don't 
accept the request object as an argument.

All solutions I've thought about are ugly hacks. The least ugly seems to be 
to create middleware that stores the request object in a contextvar 
. But it strikes me 
that I can't find a simpler solution for this. Is what I want that 
uncommon, or am I missing something?

There's an old closed "wontfix" ticket 
 about this but without 
adequate explanation.

-- 
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/175b4601-2038-479b-9581-48d9c196df7cn%40googlegroups.com.


Django: Working in models.py and forms.py

2024-05-27 Thread Solomon Ankyelle Balaara (Azonto Stick)
When you create a profile table that has a field of OneToOne, referencing 
the user table, and the profile form is rendered in the templates, the 
field OneToOne would be a select html tag that has all the user objects  in 
the sqlite database  as options for the current user creating the form to 
choose. The current user filling the profile form may be signed up as 
@azonto but chooses a different user object say @stick as @stick may sign 
up but yet to create his profile. How do you ensure that the current user 
does not have access to all the users in situations like this?

-- 
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/6d1a5a80-2322-4559-902d-2edaa55082bbn%40googlegroups.com.


Is it possible to authenticate an already existing user model created from inspect_db ?

2024-05-27 Thread utibe solomon
Hey Guys I've been trying to figure out a way to  authenticate an auto 
generated user model  and its impossible to do that unless the model has 
permission mixins and abstractuser .So how can i still authenticate an 
autogenerated user model without necessarily making migrations to that 
database  

-- 
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/75dcd6bd-f935-4078-ab00-82e9e7356738n%40googlegroups.com.


Handle Form Submission

2024-05-27 Thread Tawfeeq Zaghlool


Hello Djangooos:

I am building a simple Django application, that shows products in 
items/employee_id url, the customer opens the link and start selecting the 
items by clicking on them, then an action button appears to prepare for 
submission to display a modal asking the customer to enter his data name, 
phone number location and email, then the customer either clicks on submit 
the order or cancel, if he clicks on submit the order button it will 
redirect to messenger chat page with order details where he can send the 
order which he selects, this popup window (handle_form_submission) asks the 
customer to either send the message or cancel sending, send the message 
button will open the Chat Page on The Agent chat page with a copy of the 
Order details and wait for the customer to send the order, the cancel will 
redirect the customer to the items/user_id url the same where he starts, if 
the user clicks on send the order, and then clicks on a back button from 
the browser it should redirect him also to the items/user_id url where he 
starts, to start a new order or close the page. 

I have two issues as follows: 

1- Cancel button in the popup redirect message doesn't redirect to the 
items/user_id url link, it redirects to the items/ 

2- After Sending the message, if clicks the back button on the browser it 
will take to the previous step which is the popup message, this back button 
should redirect to the items/user_id 


The order cycle is as follows: 

Selection > Prepare for submission > Submit the order > Send the message. 

I use session in Django project to store the user_id. 

-- 
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/0de3ae23-9883-49b9-8558-c70dba7a1e97n%40googlegroups.com.


Re: Django Admin Shortcuts

2024-05-25 Thread Faisal Mahmood
Hi *Mike Schem,

Thank you for reaching out and for your work on adding keyboard shortcuts
to the Django admin. This is a valuable feature that can greatly enhance
productivity for many users. We appreciate your contribution and the effort
you've put into this PR.

We have reviewed your pull request and are excited about its potential.
Here are some thoughts and questions we have:

1.
Have you considered including a section in the Django admin documentation
that outlines the new shortcuts and how to use them?

2.
 Are the keyboard shortcuts configurable?

3.
Have you tested the keyboard shortcuts across different browsers and
operating systems to ensure consistent behavior?

 Any specific browsers or versions where you faced issues?

4.
What considerations have been made regarding accessibility?

5.
How does the implementation handle potential conflicts with existing
browser or system shortcuts?

6.
Have you noticed any performance impacts with the addition of these
shortcuts? Ensuring that the admin interface remains performant is
important for all users.

We believe these questions can help further refine the feature and ensure
it meets the needs of the wider Django community. Once again, thank you for
your contribution. We look forward to your responses and further discussion.

Best regards,
[Faisal Mahmood]

On Fri, May 24, 2024, 10:32 PM Mike Schem  wrote:

> Hey all,
>
> I’m seeking some support and feedback on my PR. I’ve added keyboard
> shortcuts to the Django admin for the save actions. We use it at my
> company, and it’s pretty helpful for power users. I’d love to hear what the
> community thinks.
>
> https://github.com/django/django/pull/17599
>
>
> Mike Schem
> Senior Software Engineer
> String King Lacrosse, LLC
> StringKing, Inc.
> 19100 South Vermont Avenue
> 
> Gardena, CA  90248
> 
> 310-699-7175 Mobile
>
> m...@stringking.com 
> StringKing.com  | uSTRING.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/CALUzFO1GyhQct422sU6WDRC3ksYf-qg8qgtR%2BwXGOwrjWDn2_A%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/CAP3eejy%3DHWk82qHU5uNaWAYDTRC1-N1A9fUVkc%2B_avj5FmUYQA%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-25 Thread utibe solomon
I'm interested with as low pay as possible I want to gain experience


On Wed, May 22, 2024, 11:12 PM Amen Guda  wrote:

> hey
>
>
> On Thu, May 9, 2024 at 9:01 PM Hussain Ezzi 
> wrote:
>
>> i am interested , with only 10 dollars per hour, i just want to hone my
>> skills again
>>
>> On Tuesday, May 7, 2024 at 2:22:56 PM UTC+5 Satyajit Barik wrote:
>>
>>> I’m interested
>>>
>>> On Sat, 4 May 2024 at 10:04 PM, Bethuel Thipe 
>>> wrote:
>>>
 I am interested


 Sent from Yahoo Mail for iPad
 

 On Friday, May 3, 2024, 3:15 PM, Raunak Ron  wrote:

 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...@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
 
 .

 --
 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/1405926229.10663276.1714800213056%40mail.yahoo.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/348e9152-385d-45d9-af85-3c161b5e21afn%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/CAJ8cwduO6WSwHosB%3D8%3Dx28VPtk%3Dwo2pSApwOTbST86YR%2BMvW7g%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/CAJkiqy7wFCD9HYO8LLV_L_FP%3D%2BNWzR9OD%2BX42RB1R_rgkUquSQ%40mail.gmail.com.


Django Admin Shortcuts

2024-05-24 Thread Mike Schem
Hey all,

I’m seeking some support and feedback on my PR. I’ve added keyboard
shortcuts to the Django admin for the save actions. We use it at my
company, and it’s pretty helpful for power users. I’d love to hear what the
community thinks.

https://github.com/django/django/pull/17599


Mike Schem
Senior Software Engineer
String King Lacrosse, LLC
StringKing, Inc.
19100 South Vermont Avenue
Gardena, CA  90248
310-699-7175 Mobile

m...@stringking.com 
StringKing.com  | uSTRING.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/CALUzFO1GyhQct422sU6WDRC3ksYf-qg8qgtR%2BwXGOwrjWDn2_A%40mail.gmail.com.


Re: Increasing iteration count for the PBKDF2 password hasher

2024-05-23 Thread Mike Dewhirst

On 23/05/2024 6:12 pm, Shaheed Haque wrote:

Hi,

As happens from time-to-time, I see the 5.1 alpha recently announced 
has increased the iteration count for the PBKDF2 password hasher (from 
720k to 870k), and the putative release notes for 5.2 mention a 
further increase (to 1M).


I assume this iteration count has something to do with the noticeable 
time it takes to run User.set_password()? Is there something that can 
be done to mitigate any further increase in the execution time of 
.set_password(), or am I barking up the wrong tree?


My understanding is the intention is to make brute force attacks more 
expensive for the attacker.


Don't know whether there might be a better way.



Thanks, Shaheed
--
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/CAHAc2jcETxAtMbHfnD1GQFVgWwR8ABOAy%3DjaRuhRW7mQhnOxeQ%40mail.gmail.com 
.



--
We recommend signal.org

Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Your
email software can handle signing.

--
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/9c7c7294-08fd-4a6a-91de-e99ab27d4a61%40dewhirst.com.au.


OpenPGP_signature.asc
Description: OpenPGP digital signature


Increasing iteration count for the PBKDF2 password hasher

2024-05-23 Thread Shaheed Haque
Hi,

As happens from time-to-time, I see the 5.1 alpha recently announced has
increased the iteration count for the PBKDF2 password hasher (from 720k to
870k), and the putative release notes for 5.2 mention a further increase
(to 1M).

I assume this iteration count has something to do with the noticeable time
it takes to run User.set_password()? Is there something that can be done to
mitigate any further increase in the execution time of .set_password(), or
am I barking up the wrong tree?

Thanks, Shaheed

-- 
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/CAHAc2jcETxAtMbHfnD1GQFVgWwR8ABOAy%3DjaRuhRW7mQhnOxeQ%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-22 Thread Amen Guda
hey


On Thu, May 9, 2024 at 9:01 PM Hussain Ezzi  wrote:

> i am interested , with only 10 dollars per hour, i just want to hone my
> skills again
>
> On Tuesday, May 7, 2024 at 2:22:56 PM UTC+5 Satyajit Barik wrote:
>
>> I’m interested
>>
>> On Sat, 4 May 2024 at 10:04 PM, Bethuel Thipe 
>> wrote:
>>
>>> I am interested
>>>
>>>
>>> Sent from Yahoo Mail for iPad
>>> 
>>>
>>> On Friday, May 3, 2024, 3:15 PM, Raunak Ron  wrote:
>>>
>>> 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...@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
>>> 
>>> .
>>>
>>> --
>>> 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/1405926229.10663276.1714800213056%40mail.yahoo.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/348e9152-385d-45d9-af85-3c161b5e21afn%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/CAJ8cwduO6WSwHosB%3D8%3Dx28VPtk%3Dwo2pSApwOTbST86YR%2BMvW7g%40mail.gmail.com.


Re: Creating live streaming app

2024-05-22 Thread Raize Studio
You can probably be fine with just websockets. But a more robust solution 
for heavy usage is to use nginx-rmtp module .

Le mercredi 15 mai 2024 à 20:58:56 UTC+2, Anshuman Thakur a écrit :

> Hi Teams,
>
> how can we create live streaming application when we are using react.js in 
> frontend and django rest framework in baackend
>

-- 
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/803c9abc-03f7-497f-bcce-00020607761dn%40googlegroups.com.


Re: Django 5.1 alpha 1 released

2024-05-22 Thread Natraj Kavander
Thank you

On Wed, May 22, 2024, 10:26 PM Natalia Bidart 
wrote:

> Details are available on the Django project weblog:
>
>
> https://www.djangoproject.com/weblog/2024/may/22/django-51-alpha-1-released/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/CA%2BfOnFam%3Dn8bL6hpPzB3NsumaC7OXVsOnMEM5GRncPKJpC0qdA%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/CAHZhoBPadR6yy%2B77E_hszdcW1AF9uXq6oJCjKrm_909mh5gVmA%40mail.gmail.com.


Django 5.1 alpha 1 released

2024-05-22 Thread Natalia Bidart
Details are available on the Django project weblog:

https://www.djangoproject.com/weblog/2024/may/22/django-51-alpha-1-released/

-- 
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%2BfOnFam%3Dn8bL6hpPzB3NsumaC7OXVsOnMEM5GRncPKJpC0qdA%40mail.gmail.com.


Re: Changing my github django simple ecommerce to use drf and and react native frotend

2024-05-20 Thread Natraj Kavander
Thank you

On Mon, May 20, 2024, 7:31 AM De Ras  wrote:

> Hey would am changing my django ecomerce site in github from traditional
> views and fprms to use django rest framework and react native as its backed
> greater support appreciated for any support. There is the link to my repo
> https://github.com/D3ras/eccommerce-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 discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEGH1-0knziC8jhdWqn5_oi1WixF9PrVOTEeOTmW8QTD3M7QdA%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/CAHZhoBMudmOQFoUfujSLihAO67gze9pEfXUfFQs-28k%2BrqiWVw%40mail.gmail.com.


Re: Displaying contrast of a queryset

2024-05-20 Thread Natraj Kavander
Thank you

On Sun, May 19, 2024, 11:24 PM 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
>
> * I want all products that a user logged in didn't send in task model*
> The following query is working but  when a user logs in should get all
> products he/she didn't send in task model
>
> product = models.ForeignKey(Product, on_delete=models.CASCADE, null=True,
> blank=True)
> tasks = Task.objects.filter(product__isnull=True)
>
>
> On Fri, May 3, 2024 at 9:52 AM Abdou KARAMBIZI 
> wrote:
>
>>
>> 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 

Re: Reactive frontend + Session Authentication (+ csrf ?)

2024-05-20 Thread Natraj Kavander
Thank you 

On Mon, May 20, 2024, 8:40 PM zvo...@seznam.cz  wrote:

> With traditional frontend (like realized with Django templates), the user
> will GET the login form and in this step Django sends csrf token. Later, in
> 2nd step, you send credential and the csrf token to the server.
>
> But in Django + Reactive frontend (Svelte in my case, but it is not
> important at all) solution, the Login form is created by Svelte. Them
> submission: not the real submission, but under the Submit button Svelte
> sends credentials to Django using FetchAPI. Maybe this submission is the
> 1st communication to Django server and so we haven't the csrf token yet (?!)
>
> So I have realized the Session Authentication without any regard to
> csrftoken cookie. My login view is wrapped by csrf_exempt. Svelte form
> sends credentials, Django makes login() and sends sessionid cookie back. It
> works.
>
> Now my question is: Is this solution safe enough? Or is it danger and I
> should first get the csrftoken cookie from server in some earlier request
> and add the header with csrftoken?
>
> It is pain to have such question.
> AI cannot answer it, instead it will write lot of text and code examples,
> without answering YES or NO, without understanding what I am asking.
> Find other sources is difficult (StackOverflow) is difficult too. On one
> side many people say Session Authentication is safe for browsers, JWT is
> not safe at all (because the token is saved in LocalStorage, not KeyChain).
> On other side, it looks like almost nobody uses Session Authentication and
> in problems many people say: Just go to JWT.
> That are reasons why it is difficult to realize the Session
> Authentication. But once realized, it is supereasy - no code, just the
> built-in cookie mechanism.
>
> So what do you mean?
> Or can you recommend some source which describes reactive frontend +
> sessionid & csrftoken cookies?
>
> --
> 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/e8d3658a-0e28-468d-a6f6-10e058217605n%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/CAHZhoBOcw6xmCbekDmOuBMpt29ic_WUtCO5zUWBN--gE-i9%3D0A%40mail.gmail.com.


Reactive frontend + Session Authentication (+ csrf ?)

2024-05-20 Thread zvo...@seznam.cz
With traditional frontend (like realized with Django templates), the user 
will GET the login form and in this step Django sends csrf token. Later, in 
2nd step, you send credential and the csrf token to the server.

But in Django + Reactive frontend (Svelte in my case, but it is not 
important at all) solution, the Login form is created by Svelte. Them 
submission: not the real submission, but under the Submit button Svelte 
sends credentials to Django using FetchAPI. Maybe this submission is the 
1st communication to Django server and so we haven't the csrf token yet (?!)

So I have realized the Session Authentication without any regard to 
csrftoken cookie. My login view is wrapped by csrf_exempt. Svelte form 
sends credentials, Django makes login() and sends sessionid cookie back. It 
works.

Now my question is: Is this solution safe enough? Or is it danger and I 
should first get the csrftoken cookie from server in some earlier request 
and add the header with csrftoken?

It is pain to have such question.
AI cannot answer it, instead it will write lot of text and code examples, 
without answering YES or NO, without understanding what I am asking.
Find other sources is difficult (StackOverflow) is difficult too. On one 
side many people say Session Authentication is safe for browsers, JWT is 
not safe at all (because the token is saved in LocalStorage, not KeyChain). 
On other side, it looks like almost nobody uses Session Authentication and 
in problems many people say: Just go to JWT.
That are reasons why it is difficult to realize the Session Authentication. 
But once realized, it is supereasy - no code, just the built-in cookie 
mechanism.

So what do you mean?
Or can you recommend some source which describes reactive frontend + 
sessionid & csrftoken cookies?

-- 
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/e8d3658a-0e28-468d-a6f6-10e058217605n%40googlegroups.com.


Re: why get_object_or_404 error is not using translation?

2024-05-19 Thread Natraj Kavander
Thank you

On Sun, May 19, 2024, 1:48 AM Hossein Mahdavipour 
wrote:

> Hi.
> I am using DRF with django. In views  I use get_object_or_404. When I get
> a 404, the exception detail is "No %s matches the given query."
> You can see the code here:
> https://github.com/django/django/blob/8f205acea94e93a463109e08814f78c09307f2b9/django/shortcuts.py#L88
> My question is why it does not use translation? I searched the web but I
> found nothing on why it does not use translation.
> Also I like to know, how can I use a workaround to get a translated error
> when getting 404 without try except in all views.
>
> Thanks in advanced.
>
> --
> 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/d1b93300-9f52-4c24-9ab9-dcfc5038200bn%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/CAHZhoBOGYXm6qdKJRtpWFVHPdods3FQDQotbJMdY7A-9KudMsA%40mail.gmail.com.


Changing my github django simple ecommerce to use drf and and react native frotend

2024-05-19 Thread De Ras
Hey would am changing my django ecomerce site in github from traditional
views and fprms to use django rest framework and react native as its backed
greater support appreciated for any support. There is the link to my repo
https://github.com/D3ras/eccommerce-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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEGH1-0knziC8jhdWqn5_oi1WixF9PrVOTEeOTmW8QTD3M7QdA%40mail.gmail.com.


Re: Displaying contrast of a queryset

2024-05-19 Thread Abdou KARAMBIZI
  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

* I want all products that a user logged in didn't send in task model*
The following query is working but  when a user logs in should get all
products he/she didn't send in task model

product = models.ForeignKey(Product, on_delete=models.CASCADE, null=True,
blank=True)
tasks = Task.objects.filter(product__isnull=True)


On Fri, May 3, 2024 at 9:52 AM Abdou KARAMBIZI 
wrote:

>
> 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 =
 

why get_object_or_404 error is not using translation?

2024-05-18 Thread Hossein Mahdavipour
Hi.
I am using DRF with django. In views  I use get_object_or_404. When I get a 
404, the exception detail is "No %s matches the given query."
You can see the code here: 
https://github.com/django/django/blob/8f205acea94e93a463109e08814f78c09307f2b9/django/shortcuts.py#L88
My question is why it does not use translation? I searched the web but I 
found nothing on why it does not use translation.
Also I like to know, how can I use a workaround to get a translated error 
when getting 404 without try except in all views.

Thanks in advanced.

-- 
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/d1b93300-9f52-4c24-9ab9-dcfc5038200bn%40googlegroups.com.


Re: View "functions" that are callables?

2024-05-16 Thread Anthony Flury
I can't see why not - as far as Python is concerned a callable is a
callable.

There is a deep in the weeds way for a caller to determine if a callable is
a __call__ method on a class, but I really doubt Django does anything close
to that - what would be the benefit.

On Wed, May 15, 2024 at 8:39 PM Christophe Pettus  wrote:

> Hi,
>
> I'm surprised I don't know this, but: Can a view "function" in a urlconf
> be a callable that is not actually a function, such as a class with a
> __call__ method?
>
> --
> 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/F70DCB4E-1307-42C2-AC62-CA2DC98DCD5B%40thebuild.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/CAN0Bb7fx5t1FC5WKRwkE31%3DYvnTVRoSi_hYqDB%2B%3DZG2-7zonzg%40mail.gmail.com.


Cascading drop down list

2024-05-15 Thread kateregga julius
Hi. I need help on implementing
Cascading drop downlist in django using functional based views and manual
forms.
*​**Kateregga Julius*
*Email: julikats2...@gmail.com *
*Kampala-Uganda*

*Skype: Katslog*

-- 
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/CAMVv_-FTK1YbmT2tz4DnvyOy_eHjT%3DBTGSky0Q%3DzzKJcy8kFOg%40mail.gmail.com.


Re: View "functions" that are callables?

2024-05-15 Thread Faisal Mahmood
Yes, in Django, a view function in a URLconf can indeed be a callable that
is not necessarily a function. You can use classes with a `__call__` method
as views, often referred to as class-based views (CBVs).

Class-based views offer more flexibility and organization than
function-based views in some cases. They allow you to group related
functionality together more easily, provide better code reuse through
inheritance, and offer built-in methods for common HTTP operations like
GET, POST, PUT, etc.

Here's a basic example of a class-based view:

```python
from django.http import HttpResponse
from django.views import View

class MyView(View):
def get(self, request, *args, **kwargs):
return HttpResponse("This is a GET request")

def post(self, request, *args, **kwargs):
return HttpResponse("This is a POST request")
```

You can then include this class-based view in your URLconf like this:

```python
from django.urls import path
from .views import MyView

urlpatterns = [
path('myview/', MyView.as_view(), name='my-view'),
]
```

In this example, `MyView` is a class-based view with `get()` and `post()`
methods, which handle GET and POST requests, respectively. When included in
the URLconf using `.as_view()`, Django will internally call the `__call__`
method of the class to handle the request.

On Thu, May 16, 2024, 12:38 AM Christophe Pettus  wrote:

> Hi,
>
> I'm surprised I don't know this, but: Can a view "function" in a urlconf
> be a callable that is not actually a function, such as a class with a
> __call__ method?
>
> --
> 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/F70DCB4E-1307-42C2-AC62-CA2DC98DCD5B%40thebuild.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/CAP3eejziJxgJR6UQZ4%2B7pUH_12rwez7yJYEp%3DwjD2%3D%3DXvhdGzw%40mail.gmail.com.


Re: View "functions" that are callables?

2024-05-15 Thread Abdulfarid Olakunle
Yes, in Django, a view function in a URLconf can indeed be a callable that
is not necessarily a function. It can be a class-based view where the class
has a `__call__` method, effectively making it callable. This is a common
practice and allows for more flexibility and organization in your code.


On Wed, May 15, 2024 at 20:39 Christophe Pettus  wrote:

> Hi,
>
> I'm surprised I don't know this, but: Can a view "function" in a urlconf
> be a callable that is not actually a function, such as a class with a
> __call__ method?
>
> --
> 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/F70DCB4E-1307-42C2-AC62-CA2DC98DCD5B%40thebuild.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%2BccuR3mM0-Q9MUk8h0jck4%3DNr2YyovWWFVDPMO6mGtFYpx0-g%40mail.gmail.com.


View "functions" that are callables?

2024-05-15 Thread Christophe Pettus
Hi,

I'm surprised I don't know this, but: Can a view "function" in a urlconf be a 
callable that is not actually a function, such as a class with a __call__ 
method?

-- 
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/F70DCB4E-1307-42C2-AC62-CA2DC98DCD5B%40thebuild.com.


Creating live streaming app

2024-05-15 Thread Anshuman Thakur
Hi Teams,

how can we create live streaming application when we are using react.js in 
frontend and django rest framework in baackend

-- 
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/2af2a9d5-c856-4127-8f51-cb1f4edbcd74n%40googlegroups.com.


Arabic text is written in reverse when filling PDF form and saving it

2024-05-14 Thread Yousuf Yousuf
I'm using fillpdf library to fill in a PDF form. When I use it externally 
it works fine and all.
When I save the file generated by fillpdf to my model the Arabic text 
becomes reversed.

[image: Screenshot 2024-05-14 120336.png]

This is my code:

import requests
from fillpdf import fillpdfs
from django.core.files import File, base
from io import BytesIO
from django.forms.models import model_to_dict

ctx = {
'full_name': 'منصور أحمد',
'current_nationality': 'الإمارات العربية المتحدة'
}

response = requests.get(
"http://localhost:8000/static/document/form.pdf;)
if not response.ok:
log.error("couldn't get form")

in_stream = BytesIO(response.content)
out_stream = BytesIO()

fillpdfs.write_fillable_pdf(
in_stream,
out_stream,
ctx,
flatten=True
)

with open("output.pdf", "wb") as f:
f.write(out_stream.getbuffer())

application.arabic_document.save("Some fillpdf file.pdf", base.
ContentFile(out_stream.getbuffer()))

-- 
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/e7769405-358e-4f83-bd1f-90ef2fc61b47n%40googlegroups.com.


Re: Account verification

2024-05-13 Thread Anthony Flury
Your register view is setting is_active to True - regardless of email
verification.

Remember that the email confirmation will happen asynchronously to the
registration.

What I do is have a separate table that records that a user needs to
complete the verification process.
So registration sends the email (with a link) to the user and adds a record
to the verification pending table.

I then have the verification view which sets the user to be Active and
deleted the record in the pending table.



On Mon, May 13, 2024 at 1:27 PM Kennedy Akogo 
wrote:

> I'm attempting to implement a registration system with email verification.
> While the email verification functionality is working - sending an email to
> the user for verification - I'm encountering an issue where users are able
> to log in even without verifying their email addresses.
>
> My goal is to restrict login functionality for users who haven't verified
> their email addresses. In other words, users should only be able to log in
> if they have completed the email verification process.
>
> Please advise ,I have attached images of the login and register view
>
>
> --
> 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/CAJBDwusqGZXgHHg55uOvh_9h1VB8D3o1pxfLPcaJTJHViXrwZg%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/CAN0Bb7eQQ76s_VL2z%2BSc%3DEfHH%3DxqRePsp9Ph8teC2KN2ZqjF2w%40mail.gmail.com.


Serving static files with whitenoise

2024-05-13 Thread Richlue King
Hi, I'm trying to upload my project to render.com and I need to set up the 
static files with whitenoise. However, when I run collectstatic, I keep 
encountering this error:

Post-processing 'assets\css\bootstrap.min.css' failed!

raise ValueError(
ValueError: The file 'assets/css/bootstrap.min.css.map' could not be found 
with 
Could somebody please help me with this?

-- 
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/75882c41-d554-462a-96f5-d853bc3125a1n%40googlegroups.com.


Re: very urgent

2024-05-13 Thread Babatunde Mabinuori
Good day,
The error occurs because "usagers/login.html" doesn't exist in your 
template file or wasn't properly referenced. Kindly check the filename 
properly to see if it exist, the filename is correctly spelt and well 
referenced.
On Sunday, May 12, 2024 at 4:03:41 PM UTC+1 Yann wrote:

> Please does somoene can help me with this:
> [image: Capture d'écran 2024-05-12 091648.png]
>

-- 
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/ed4dc3aa-03fa-4589-b148-c881e216a4c3n%40googlegroups.com.


Re: very urgent

2024-05-13 Thread Agar Joshua
whats the folder structure for your templates?

On Sun, May 12, 2024 at 6:03 PM Yann  wrote:

> Please does somoene can help me with this:
> [image: Capture d'écran 2024-05-12 091648.png]
>
> --
> 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/8b6516df-3fa8-47a6-813f-8fb3c786a639n%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/CALHJg5LP4TcO0ct%2BT6-%3D%2B1ckLd%3Dg7e8sC7g%3DmBPUf0OX5wKMrg%40mail.gmail.com.


DO you know that error I been trying to fox it since 6 hours with no udaptes

2024-05-12 Thread Yann
 TemplateDoesNotExist at /login/ usagers/login.html 
Request Method: 
GET 
Request URL: 
http://127.0.0.1:8000/login/ 
Django Version: 
4.0.3 
Exception Type: 
TemplateDoesNotExist 
Exception Value: 
usagers/login.html 
Exception Location: 
C:\Users\Yann\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\template\loader.py,
 
line 47, in select_template 
Python Executable: 
C:\Users\Yann\AppData\Local\Programs\Python\Python312\python.exe 
Python Version: 
3.12.1 
Python Path: 
['C:\\Pwd-H2024\\critiques_gastronomiques', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312\\python312.zip', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312\\DLLs', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312\\Lib', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312', 
'C:\\Users\\Yann\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages']
 

Server time: 
Sun, 12 May 2024 13:03:44 + 
Template-loader postmortem 

Django tried loading these templates, in this order:

Using engine django:

   - django.template.loaders.filesystem.Loader: 
   
C:\Pwd-H2024\critiques_gastronomiques\critique_gastronomiques\templates\usagers\login.html
 
   (Source does not exist) 
   - django.template.loaders.filesystem.Loader: 
   
C:\Pwd-H2024\critiques_gastronomiques\restaurants\templates\usagers\login.html 
   (Source does not exist) 
   - django.template.loaders.app_directories.Loader: 
   
C:\Users\Yann\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\contrib\admin\templates\usagers\login.html
 
   (Source does not exist) 
   - django.template.loaders.app_directories.Loader: 
   
C:\Users\Yann\AppData\Local\Programs\Python\Python312\Lib\site-packages\django\contrib\auth\templates\usagers\login.html
 
   (Source does not exist) 
   - django.template.loaders.app_directories.Loader: 
   
C:\Pwd-H2024\critiques_gastronomiques\restaurants\templates\usagers\login.html 
   (Source does not exist)
   - 
   

-- 
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/c2726951-bcb7-421f-9f5e-9562f726f564n%40googlegroups.com.


Django Model Image as background image in css

2024-05-11 Thread Paul Magadi
How do we use a model image as a background image for static css

-- 
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/985a602b-c154-4e91-ac65-f7da5d66adadn%40googlegroups.com.


Streamlining Model validation of ForeignKeys

2024-05-10 Thread Shaheed Haque
Hi,

I have two models Source and Input, where Input has an FK to Source like
this:

class Source(db_models.Model):
scheme = db_models.CharField(...)
path = db_models.CharField(...)
display_as = db_models.CharField(...)

class Input(db_models.Model):
name = db_models.CharField(...)
description = db_models.CharField(...)
type = db_models.CharField(...)
source = db_models.ForeignKey(Source, on_delete=db_models.CASCADE)
reuse = db_models.CharField(...)
value = db_models.CharField(...)

The instances of Source are statically created, and number 20 or so in
total. The instances of Input number in the millions, and may be loaded
from external files/network endpoints. When Input instances are created, we
perform normal Django validation processing, involving
form.is_valid()/form.errors. As we know, Django 5.x does something like:

   1. Form field validation using Form.clean_xxx().
   2. Form cross-field validation using Form.clean().
   3. Model validation, including validating the FK.

like this:

...
File "/.../django/forms/forms.py", line 197, in is_valid return
self.is_bound and not self.errors File "/.../django/forms/forms.py", line
192, in errors self.full_clean() File "/.../django/forms/forms.py", line
329, in full_clean self._post_clean() File "/.../django/forms/models.py",
line 496, in _post_clean self.instance.full_clean(exclude=exclude,
validate_unique=False) File "/.../django/db/models/base.py", line 1520, in
full_clean self.clean_fields(exclude=exclude) File
"/.../django/db/models/base.py", line 1572, in clean_fields setattr(self,
f.attname, f.clean(raw_value, self)) File
"/.../django/db/models/fields/__init__.py", line 830, in clean
self.validate(value, model_instance) File
"/.../django/db/models/fields/related.py", line 1093, in validate if not
qs.exists():
...

In one experiment, I observe that this results in 143k queries, taking a
total of 43s. Is there a way to short circuit this Model-level validation?
Since I know the ~20 instances of Source, even a cache of
Source.objects.all() would be a very cheap, but I cannot see any way to
inject that into the code for line 1093:

   def validate(self, value, model_instance):
   if self.remote_field.parent_link:
   return
   super().validate(value, model_instance)
   if value is None:
   return

   using = router.db_for_read(self.remote_field.model,
instance=model_instance)
   qs = self.remote_field.model._base_manager.using(using).filter(
 queryset created here
   **{self.remote_field.field_name: value}
   )
   qs = qs.complex_filter(self.get_limit_choices_to())
   if not qs.exists():
 queryset evaluated here, line 1093
   raise exceptions.ValidationError(...)

We actually have several versions of this problem so any ideas are welcome.

Thanks, Shaheed

-- 
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/CAHAc2jfzag7v6t7_pvbRnyJ-chMFHyjmkXsDkRouTg7JOteRfQ%40mail.gmail.com.


Re: Call for Testing: Connection Pooling PR for Django Oracle

2024-05-09 Thread Benjamini Athanas
thanks

On Mon, 6 May 2024 at 22:41, suraj shaw  wrote:

> Dear Django Users,
>
>
> I hope this email finds you well.
>
>
> We're reaching out to the Django community today with an exciting
> opportunity to test a significant enhancement for the Oracle database
> backend: connection pooling functionality.
>
>
> A pull request has been submitted that introduces connection pooling to
> Django's Oracle backend. This enhancement promises to bring notable
> improvements in performance and scalability, particularly for applications
> handling heavy database traffic.
>
> We're inviting members of the Django community to participate in testing
> this PR.
>
>
> Your feedback and testing are invaluable in ensuring the reliability,
> efficiency, and compatibility of this feature across various Django
> projects and environments. By participating, you not only contribute to the
> enhancement of Django but also ensure that this crucial functionality meets
> the diverse needs of our community.
>
>
> *How You Can Help:*
>
>1. *Testing*: Deploy the PR in your development or testing environment
>and run your Django applications with Oracle backend. Observe its behavior,
>performance, and compatibility with your existing codebase.
>2. *Bug Reporting*: If you encounter any issues, whether they're
>related to functionality, performance, or compatibility, please report them
>promptly. Detailed bug reports with steps to reproduce are immensely
>helpful for the developers.
>3. *Feedback*: Share your thoughts, suggestions, and experiences with
>the community. Your feedback will aid in refining and improving the feature
>before it's merged into the main Django codebase.
>
>
> Testing Environment - Use python-oracledb (thin mode)
>
> Link - https://python-oracledb.readthedocs.io/en/latest/index.html
>
>
> *PR Link:* https://github.com/django/django/pull/17834
>
>
> Your contributions to this testing effort will play a crucial role in
> expediting the merging process. We highly appreciate your time and effort
> in helping make Django even better.
>
>
>
> Thank you for your support and dedication to the Django community.
>
>
> Best regards,
>
> Suraj Kumar Shaw
>
> --
> 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/CAAUoqBHSZros2LGk9r2BeLYgm54LtCdTN_QURkGcTU-G9CFxwQ%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/CAPRT2e5FDk6MJf8X%3D_iFOUkcyPBP3Sc-%3DH4KpSRNtbDo-3%3DY%2Bg%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-09 Thread Hussain Ezzi
i am interested , with only 10 dollars per hour, i just want to hone my 
skills again

On Tuesday, May 7, 2024 at 2:22:56 PM UTC+5 Satyajit Barik wrote:

> I’m interested 
>
> On Sat, 4 May 2024 at 10:04 PM, Bethuel Thipe  wrote:
>
>> I am interested 
>>
>>
>> Sent from Yahoo Mail for iPad 
>> 
>>
>> On Friday, May 3, 2024, 3:15 PM, Raunak Ron  wrote:
>>
>> 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...@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
>>  
>> 
>> .
>>
>> -- 
>> 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/1405926229.10663276.1714800213056%40mail.yahoo.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/348e9152-385d-45d9-af85-3c161b5e21afn%40googlegroups.com.


how to acheive this

2024-05-09 Thread malhaar mahapatro
I have scrpaded and saved attachment I want to send it to dashboard  of
iso,isto and irt and I want an option that they have seen that message or
not and what action taken I can see and then can send again to csirt
dashboard about action taken and csirt can send it to whom he wants how to
achieve in django from scratch using 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 discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMgb%2BbF1F39ESJFYpKHgai5ugWK2A6c%3Dp-Bat52bNHYbJJV3%2BQ%40mail.gmail.com.


Django bugfix releases issued: 4.2.13 and 5.0.6

2024-05-07 Thread Natalia Bidart
Details are available on the Django project weblog:
https://www.djangoproject.com/weblog/2024/may/07/bugfix-releases/

-- 
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%2BfOnFbD3z%2B2BPPyfGi9rrSDTpehMCyHaj%3DoN_kx9bBx-oviKg%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-07 Thread Satyajit Barik
I’m interested

On Sat, 4 May 2024 at 10:04 PM, Bethuel Thipe 
wrote:

> I am interested
>
>
> Sent from Yahoo Mail for iPad
> 
>
> On Friday, May 3, 2024, 3:15 PM, Raunak Ron  wrote:
>
> 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
> 
> .
>
> --
> 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/1405926229.10663276.1714800213056%40mail.yahoo.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/CANd-%2BoBKK8c83c%3Dz%2Bp%3DS8Yvem9Rm-a_3iMqd-49Ru%2B0PXxsW%3DA%40mail.gmail.com.


Django bugfix releases issued: 4.2.12 and 5.0.5

2024-05-06 Thread Sarah Boyce
Details are available on the Django project weblog:
https://www.djangoproject.com/weblog/2024/may/06/bugfix-releases/

-- 
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/CAN%2BfQHyT9xZmOm6CQxbo9jv99cQinJME3n8dBiJaS%3DVpvTJovw%40mail.gmail.com.


Call for Testing: Connection Pooling PR for Django Oracle

2024-05-06 Thread suraj shaw
Dear Django Users,


I hope this email finds you well.


We're reaching out to the Django community today with an exciting
opportunity to test a significant enhancement for the Oracle database
backend: connection pooling functionality.


A pull request has been submitted that introduces connection pooling to
Django's Oracle backend. This enhancement promises to bring notable
improvements in performance and scalability, particularly for applications
handling heavy database traffic.

We're inviting members of the Django community to participate in testing
this PR.


Your feedback and testing are invaluable in ensuring the reliability,
efficiency, and compatibility of this feature across various Django
projects and environments. By participating, you not only contribute to the
enhancement of Django but also ensure that this crucial functionality meets
the diverse needs of our community.


*How You Can Help:*

   1. *Testing*: Deploy the PR in your development or testing environment
   and run your Django applications with Oracle backend. Observe its behavior,
   performance, and compatibility with your existing codebase.
   2. *Bug Reporting*: If you encounter any issues, whether they're related
   to functionality, performance, or compatibility, please report them
   promptly. Detailed bug reports with steps to reproduce are immensely
   helpful for the developers.
   3. *Feedback*: Share your thoughts, suggestions, and experiences with
   the community. Your feedback will aid in refining and improving the feature
   before it's merged into the main Django codebase.


Testing Environment - Use python-oracledb (thin mode)

Link - https://python-oracledb.readthedocs.io/en/latest/index.html


*PR Link:* https://github.com/django/django/pull/17834


Your contributions to this testing effort will play a crucial role in
expediting the merging process. We highly appreciate your time and effort
in helping make Django even better.



Thank you for your support and dedication to the Django community.


Best regards,

Suraj Kumar Shaw

-- 
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/CAAUoqBHSZros2LGk9r2BeLYgm54LtCdTN_QURkGcTU-G9CFxwQ%40mail.gmail.com.


Re: E-comm live project

2024-05-06 Thread Dean Mahori
Add me
+263786881635

Sent from Outlook for Android

From: django-users@googlegroups.com  on behalf 
of amruth bitla 
Sent: Monday, May 6, 2024 6:23:52 PM
To: Django users 
Subject: Re: E-comm live project

Hi  1001_prabhjot Singh,

I am interested, check out my GitHuB Page for Django 
Project, Please Email me.

On Monday, May 6, 2024 at 12:13:13 PM UTC-4 avdesh sharma wrote:
I am interested, +91-9650031844

On Mon, Mar 18, 2024 at 10:56 PM 1001_prabhjot Singh  
wrote:
so i am working on a full stack e-comm website and this project is really very 
big for me because it's a live project am using django for backend interested 
one's can send there number for WhatsApp group

--
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/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.com.


--
Warm Regards,
Avdesh Kumar Sharma
9650031844

--
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/a84f1fdf-36de-4a79-b628-b2a50c576f3an%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/PAXP193MB2202C8F3EC53FC22B974B0D0FF1C2%40PAXP193MB2202.EURP193.PROD.OUTLOOK.COM.


Re: E-comm live project

2024-05-06 Thread amruth bitla
Hi  1001_prabhjot Singh, 

I am interested, check out my *GitHuB*  Page for 
*Django 
Project*, Please *Email*  me.

On Monday, May 6, 2024 at 12:13:13 PM UTC-4 avdesh sharma wrote:

> I am interested, +91-9650031844 <+91%2096500%2031844>
>
> On Mon, Mar 18, 2024 at 10:56 PM 1001_prabhjot Singh  
> wrote:
>
>> so i am working on a full stack e-comm website and this project is really 
>> very big for me because it's a live project am using django for backend 
>> interested one's can send there number for WhatsApp group  
>>
>> -- 
>> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Warm Regards,
> Avdesh Kumar Sharma
> 9650031844
>

-- 
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/a84f1fdf-36de-4a79-b628-b2a50c576f3an%40googlegroups.com.


Re: E-comm live project

2024-05-06 Thread avdesh sharma
I am interested, +91-9650031844

On Mon, Mar 18, 2024 at 10:56 PM 1001_prabhjot Singh <
prabhjotbal...@gmail.com> wrote:

> so i am working on a full stack e-comm website and this project is really
> very big for me because it's a live project am using django for backend
> interested one's can send there number for WhatsApp group
>
> --
> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%40googlegroups.com
> 
> .
>


-- 
Warm Regards,
Avdesh Kumar Sharma
9650031844

-- 
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/CAF5Nfo6d%3DOi7ywzo8uYd5Zd5OzkdhbYoF4uEC-uspP5OZ0b0sg%40mail.gmail.com.


Re: E-comm live project.

2024-05-06 Thread Daouda Sagno
Salut,
Mon numéro WhatsApp est +2250749741167

Le lun. 6 mai 2024 à 13:14, ankit lodhi  a écrit :

>
> Hi there,
> I have worked on multi-vendor E-Commerce apps,
> e-comm apps and on e-mart apps.
> You can consider me.
>
> My WhatsApp no. : +919165805819
> On Monday, May 6, 2024 at 6:00:16 PM UTC+5:30 M.VIKRAMAN ROMAN_VIKI wrote:
>
>> Lets do this guys. This is my whatsapp number : *+919514531375
>> <+91%2095145%2031375>*
>>
>> On Monday 18 March, 2024 at 11:04:22 pm UTC+5:30 Sang wrote:
>>
>>> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up
>>> there.
>>>
>>
>>> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh 
>>> wrote:
>>>
 so i am working on a full stack e-comm website and this project is
 really very big for me because it's a live project am using django for
 backend interested one's can send there number for WhatsApp group

 --
 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/722ffbfd-fcd4-49fd-b671-b8f536181643n%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/CAHOT321AoRPNmaWiNMn9bfRHOXwwyCnGUCvuYSsqJo_Tcaes9w%40mail.gmail.com.


Re: E-comm live project

2024-05-06 Thread Montego King
I'm a novice, and wish to follow and learn
whatsapp:+237651802010

On Monday, March 18, 2024 at 6:26:50 PM UTC+1 1001_prabhjot Singh wrote:

> so i am working on a full stack e-comm website and this project is really 
> very big for me because it's a live project am using django for backend 
> interested one's can send there number for WhatsApp group  
>

-- 
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/13a4b441-24d7-41c3-a8b1-61e00b4f457dn%40googlegroups.com.


Re: E-comm live project.

2024-05-06 Thread Ibrahim Olayiwola
+1 201 852 7823

On Monday, May 6, 2024 at 8:30:16 AM UTC-4 M.VIKRAMAN ROMAN_VIKI wrote:

> Lets do this guys. This is my whatsapp number : *+919514531375 
> <+91%2095145%2031375>*
>
> On Monday 18 March, 2024 at 11:04:22 pm UTC+5:30 Sang wrote:
>
>> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up 
>> there. 
>>
>
>> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh  
>> wrote:
>>
>>> so i am working on a full stack e-comm website and this project is 
>>> really very big for me because it's a live project am using django for 
>>> backend interested one's can send there number for WhatsApp group  
>>>
>>> -- 
>>> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/c171f588-7400-428e-bf4f-221e7f9e77c6n%40googlegroups.com.


Re: E-comm live project.

2024-05-06 Thread ankit lodhi

Hi there,
I have worked on multi-vendor E-Commerce apps,
e-comm apps and on e-mart apps.
You can consider me.

My WhatsApp no. : +919165805819
On Monday, May 6, 2024 at 6:00:16 PM UTC+5:30 M.VIKRAMAN ROMAN_VIKI wrote:

> Lets do this guys. This is my whatsapp number : *+919514531375 
> <+91%2095145%2031375>*
>
> On Monday 18 March, 2024 at 11:04:22 pm UTC+5:30 Sang wrote:
>
>> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up 
>> there. 
>>
>
>> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh  
>> wrote:
>>
>>> so i am working on a full stack e-comm website and this project is 
>>> really very big for me because it's a live project am using django for 
>>> backend interested one's can send there number for WhatsApp group  
>>>
>>> -- 
>>> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/722ffbfd-fcd4-49fd-b671-b8f536181643n%40googlegroups.com.


Re: E-comm live project.

2024-05-06 Thread M.VIKRAMAN ROMAN_VIKI
Lets do this guys. This is my whatsapp number : *+919514531375*

On Monday 18 March, 2024 at 11:04:22 pm UTC+5:30 Sang wrote:

> Looks interesting. I'm on WhatsApp @ 9937826218. Please let's catch up 
> there. 
>
> On Mon, Mar 18, 2024, 22:56 1001_prabhjot Singh  
> wrote:
>
>> so i am working on a full stack e-comm website and this project is really 
>> very big for me because it's a live project am using django for backend 
>> interested one's can send there number for WhatsApp group  
>>
>> -- 
>> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/5cf1ad21-ff34-42d7-a438-88b9cfddaecdn%40googlegroups.com.


[no subject]

2024-05-05 Thread Dean Mahori
Dear Programmers,
My name is Dean Mahori and I'm a student at Chinhoyi University . I'm
working on a university project to build a website using the Django
framework.
I'm currently in the process of developing a website to better connect with
our community and raise awareness about our cause.  While I'm excited to
embark on this project, I'm also new to website development and could
really use some assistance.
I'm particularly interested in using Django, a Python web framework, to
build the website.  I've been doing some research on it and believe it
would be a good fit for our needs.  However, as a beginner, I would greatly
appreciate any guidance or support from experienced Django programmers. I'm
also open to different approaches and suggestions from experienced
programmers.

Here are some specific areas where I could use help:

Project Setup and Best Practices: Ensuring a solid foundation for the
website's development.
Understanding Django Features: Learning how to effectively utilize
Django functionalities for our website.
Building Core functionalities: Developing essential features like user
registration, content management, and potentially donation options.

I understand that volunteering your time is valuable, and I'm incredibly
grateful for any assistance you can offer.  Even if it's just pointing me
in the right direction with resources or tutorials, it would be immensely
helpful.
I'm happy to discuss the project further and answer any questions you may
have.  Please feel free to contact me at deanmah...@gmail.com or
+263786881635
You can also comment with your whatsapp number so that i can create a group
for all of us.

Thank you for your time and consideration.

-- 
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/CAOxCe%3DSQMWYKQzf4ODUVqEXqmZB%2BN1R%3DWvbZLNzxAzPa6F7k7A%40mail.gmail.com.


Re: E-comm live project

2024-05-04 Thread Samwel Omolo
Hi Dean,

I hope this message finds you well. I'm Samwel Omolo, and I came across
your request to be added to the WhatsApp group for the full stack e-comm
website project using Django for the backend. I'm definitely interested in
joining the group and contributing to the project.

Please add me to the WhatsApp group. You can reach me at +254745721005.

Looking forward to collaborating with you and the rest of the team on this
exciting project.

Best regards,
Samwel


On Sat, May 4, 2024 at 7:34 PM Dean Mahori  wrote:

> add me +263786881635
>
>
> On Tue, Apr 30, 2024 at 3:23 PM Kintu Peter  wrote:
>
>> Watsap +256789746493
>>
>>
>> On Monday, March 18, 2024 at 8:26:50 PM UTC+3 1001_prabhjot Singh wrote:
>>
>>> so i am working on a full stack e-comm website and this project is
>>> really very big for me because it's a live project am using django for
>>> backend interested one's can send there number for WhatsApp group
>>>
>> --
>> 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/133bfa88-4044-4bdc-9602-9c3a5ec276b7n%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/CAOxCe%3DS22%3DXqpQOP9gPAqTR4%2B1xHhMNoCacMMOsMPNa7Kvuhbw%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/CAJpp-5QytDuLfo%3DapRQKkDhBXjZAnt3TNGEhhtiK8HXx_y9ojw%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-05-04 Thread Bethuel Thipe
I am interested 


Sent from Yahoo Mail for iPad


On Friday, May 3, 2024, 3:15 PM, Raunak Ron  wrote:

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.



-- 
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/1405926229.10663276.1714800213056%40mail.yahoo.com.


Re: E-comm live project

2024-05-04 Thread Dean Mahori
add me +263786881635


On Tue, Apr 30, 2024 at 3:23 PM Kintu Peter  wrote:

> Watsap +256789746493
>
>
> On Monday, March 18, 2024 at 8:26:50 PM UTC+3 1001_prabhjot Singh wrote:
>
>> so i am working on a full stack e-comm website and this project is really
>> very big for me because it's a live project am using django for backend
>> interested one's can send there number for WhatsApp group
>>
> --
> 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/133bfa88-4044-4bdc-9602-9c3a5ec276b7n%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/CAOxCe%3DS22%3DXqpQOP9gPAqTR4%2B1xHhMNoCacMMOsMPNa7Kvuhbw%40mail.gmail.com.


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
>>> 

Re: Displaying contrast of a queryset

2024-05-01 Thread Kelvin Macharia
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 
>> https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%40mail.gmail.com
>>  
>> 

Re: Displaying contrast of a queryset

2024-05-01 Thread Kelvin Macharia
Hi  Abdou KARAMBIZI,

Have you tried to make the product field in the Task model optional?

Like:

product = models.ForeignKey(Product, on_delete=models.CASCADE, null=True, 
blank=True)

On Saturday, April 27, 2024 at 9:55:56 PM UTC+3 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 
 https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/4d216a44-5a21-4f3d-aae5-c02553561074n%40googlegroups.com
>>  
>> 

Lookin for Internship opportunity (Django, React)

2024-04-30 Thread Ricky Kristian
Hi, I'm looking for internship as a full stack engineer.

My tech stack is, Django Rest Framework, React.Js, SQL, MySQL, Tailwind 
CSS, CSS, HTML
You may check my current live project:

https://workmatch.rickykristianbutarbutar.com

github:
Your Repositories (github.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/92899c16-fb2b-458e-b755-a344729c8094n%40googlegroups.com.


Re: E-comm live project

2024-04-30 Thread Kintu Peter
Watsap +256789746493


On Monday, March 18, 2024 at 8:26:50 PM UTC+3 1001_prabhjot Singh wrote:

> so i am working on a full stack e-comm website and this project is really 
> very big for me because it's a live project am using django for backend 
> interested one's can send there number for WhatsApp group  
>

-- 
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/133bfa88-4044-4bdc-9602-9c3a5ec276b7n%40googlegroups.com.


Re: E-comm live project

2024-04-30 Thread FIRDOUS BHAT
HI there,
I've worked on multi-vendor E-Commerce apps,
EdTech apps and on Real Estate apps.
You can consider me.

My WhatsApp no. : +918553332955

On Tue, Apr 30, 2024 at 4:03 PM shubham joshi 
wrote:

> Hello @prabhjotbal...@gmail.com  and team,
>
> Please consider me for e-comm project
> +91 8390246938 is my whpp number
>
>
>
> Thanks,
> shubham
> --
> *From:* django-users@googlegroups.com  on
> behalf of 1001_prabhjot Singh 
> *Sent:* Monday, March 18, 2024 10:45 PM
> *To:* Django users 
> *Subject:* E-comm live project
>
> so i am working on a full stack e-comm website and this project is really
> very big for me because it's a live project am using django for backend
> interested one's can send there number for WhatsApp group
>
> --
> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/PA6PR02MB10563542210EEEF5E72D7EDA7FA1A2%40PA6PR02MB10563.eurprd02.prod.outlook.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/CAFB6YJrNz5FzFKbJ0ntsSHfmj4Ca6%3DuzuFzE0cm8VxXZsE9Vkw%40mail.gmail.com.


Re: E-comm live project

2024-04-30 Thread shubham joshi
Hello @prabhjotbal...@gmail.com and team,

Please consider me for e-comm project
+91 8390246938 is my whpp number



Thanks,
shubham

From: django-users@googlegroups.com  on behalf 
of 1001_prabhjot Singh 
Sent: Monday, March 18, 2024 10:45 PM
To: Django users 
Subject: E-comm live project

so i am working on a full stack e-comm website and this project is really very 
big for me because it's a live project am using django for backend interested 
one's can send there number for WhatsApp group

--
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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/PA6PR02MB10563542210EEEF5E72D7EDA7FA1A2%40PA6PR02MB10563.eurprd02.prod.outlook.com.


Re: E-comm live project

2024-04-30 Thread shubham joshi

+91 8390246938

From: django-users@googlegroups.com  on behalf 
of 1001_prabhjot Singh 
Sent: Monday, March 18, 2024 10:45 PM
To: Django users 
Subject: E-comm live project

so i am working on a full stack e-comm website and this project is really very 
big for me because it's a live project am using django for backend interested 
one's can send there number for WhatsApp group

--
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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/PA6PR02MB105632690565185A90842E807FA1A2%40PA6PR02MB10563.eurprd02.prod.outlook.com.


Re: E-comm live project

2024-04-29 Thread kumbhaj shukla
Looking for remote opportunities, anyone is there who have link or looking
for a co founder>.
Mail are always open just write your proposal , and let's build something
and make some impact with similar thought.kumbha...@gmail.com


*Best regards,*
*Kumbhaj shukla*
https://www.linkedin.com/in/kumbhaj/


On Mon, 29 Apr 2024 at 19:54, rahul sharma  wrote:

> 7899403562
>
> On Mon, Apr 29, 2024, 19:45 Pankaj Saini 
> wrote:
>
>> Please share WhatsApp Group Link.
>>
>> On Mon, Mar 18, 2024, 10:56 PM 1001_prabhjot Singh <
>> prabhjotbal...@gmail.com> wrote:
>>
>>> so i am working on a full stack e-comm website and this project is
>>> really very big for me because it's a live project am using django for
>>> backend interested one's can send there number for WhatsApp group
>>>
>>> --
>>> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/CAG2-KSOVN8eNaK9coRa-n0ZBhYMRUqMUuh2h_1fH2W-i15fFRQ%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/CACvpWirsi%2BRWLYJ%3Dmon0XK%3D7moT_mAKNnFWcsZMbS%2BrTeTvUfg%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/CAPjc%3DUViXfv3PQO0%3DVKa3f6Ta%3D-gwzmGTTyLVx08uKPYqJLDPw%40mail.gmail.com.


Re: E-comm live project

2024-04-29 Thread rahul sharma
7899403562

On Mon, Apr 29, 2024, 19:45 Pankaj Saini  wrote:

> Please share WhatsApp Group Link.
>
> On Mon, Mar 18, 2024, 10:56 PM 1001_prabhjot Singh <
> prabhjotbal...@gmail.com> wrote:
>
>> so i am working on a full stack e-comm website and this project is really
>> very big for me because it's a live project am using django for backend
>> interested one's can send there number for WhatsApp group
>>
>> --
>> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/CAG2-KSOVN8eNaK9coRa-n0ZBhYMRUqMUuh2h_1fH2W-i15fFRQ%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/CACvpWirsi%2BRWLYJ%3Dmon0XK%3D7moT_mAKNnFWcsZMbS%2BrTeTvUfg%40mail.gmail.com.


Re: Freelance Opportunity : Django Developer for building A Dialer

2024-04-29 Thread Pankaj Saini
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+unsubscr...@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/CAG2-KSPujUv9HANXppeT0063Tb%2BmMTk0K4gJ0LCjSsX_9Krn_Q%40mail.gmail.com.


Re: E-comm live project

2024-04-29 Thread Pankaj Saini
Please share WhatsApp Group Link.

On Mon, Mar 18, 2024, 10:56 PM 1001_prabhjot Singh 
wrote:

> so i am working on a full stack e-comm website and this project is really
> very big for me because it's a live project am using django for backend
> interested one's can send there number for WhatsApp group
>
> --
> 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/1101d563-726a-458e-ad9f-4b91bebf3132n%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/CAG2-KSOVN8eNaK9coRa-n0ZBhYMRUqMUuh2h_1fH2W-i15fFRQ%40mail.gmail.com.


Re: Displaying contrast of a queryset

2024-04-28 Thread manohar chundru
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
 https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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/4d216a44-5a21-4f3d-aae5-c02553561074n%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 

Re: Displaying contrast of a queryset

2024-04-27 Thread Abdou KARAMBIZI
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
>>> https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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/4d216a44-5a21-4f3d-aae5-c02553561074n%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/CABnE44yO89B2srRGoyzoFgXUbpPSki-mxamXo4GwGYs4zMGugA%40mail.gmail.com.


Re: Displaying contrast of a queryset

2024-04-27 Thread Kelvin Macharia
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 
>> https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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/4d216a44-5a21-4f3d-aae5-c02553561074n%40googlegroups.com.


Re: Displaying contrast of a queryset

2024-04-26 Thread Muhammad Juwaini Abdul Rahman
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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%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/CAFKhtoQjP901DjuG0_2ULS4GeO8dBa-1RjC9_Ccj8hUWDq2weQ%40mail.gmail.com.


Displaying contrast of a queryset

2024-04-26 Thread Abdou KARAMBIZI
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABnE44ztqCOVMkfDXHMVDAA0b3DpiyuSDKbQw7SNR9ybUvVLhA%40mail.gmail.com.


Re: Problem to style form fields with error

2024-04-25 Thread Guido Luis Dalla Vecchia
Here I attach the relevant parts of the files "views.py", "index.html" and 
"forms.py" so you can check them out.

Thanks!

El jueves, 25 de abril de 2024 a las 11:36:03 UTC-3, Ryan Nowakowski 
escribió:

> Can you share some code snippets?
>
>
> On April 24, 2024 6:28:18 PM CDT, Guido Luis Dalla Vecchia <
> gld...@gmail.com> wrote:
>
>> Hello! I'm building my first website with Django and I've been stuck for 
>> the past two months with a problem I can't figure out.
>> My website has a form with three fields that allow the user to input his 
>> first name, last name and email.
>> In my "forms.py" file, I've declared "clean" methods for each field, that 
>> add the "error" class to them if they don't pass the validation.
>> In my CSS file, I declared a rule that applies the "background-color: 
>> lightcoral" to all elements with the class ".error".
>> The problem is that, when I fill in the "last name" field with invalid 
>> data, the "first name" field gets marked as invalid too.
>> I've tried everything I could think of, and nothing has worked. It's 
>> driving me crazy!! Has anyone ever seen something like this?
>>
>> Pleas help!!!
>>
>>

-- 
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/0e076efc-5da3-4020-8b80-d9a9b7b4b861n%40googlegroups.com.
from django.shortcuts import render
from .forms import AppointmentForm

def home(request):

if request.method == "POST":
form = AppointmentForm(request.POST)

if form.is_valid():
form.save()
return render(request, "home/index2.html", {"form": form})
   

else:

form = AppointmentForm()

return render(request, "home/index2.html", {"form": form})

{% csrf_token %}

{{ form.non_field_errors }}
   



{{ form.name }}



{{ form.last_name }}



{{ form.email }}


from django import forms
from .models import Appointment

class AppointmentForm(forms.ModelForm):

class Meta:
model = Appointment
fields = ['name', 'last_name', 'email']
widgets = {
"name": forms.TextInput(attrs={"class": "form-control"}),
"last_name": forms.TextInput(attrs={"class": "form-control"}),
"email": forms.EmailInput(attrs={"class": "form-control"}),
}

def clean_name(self):
name = self.cleaned_data['name']

if not name.isalpha():
self.fields['name'].widget.attrs['class'] += ' error'
raise forms.ValidationError("Please, input only letters", code="carac_esp")


return name

def clean_last_name(self):
last_name = self.cleaned_data["last_name"]

if not last_name.isalpha():
self.fields['last_name'].widget.attrs['class'] += ' error'
raise forms.ValidationError("Please, input only letters", code="carac_esp")

return last_name

def clean_email(self):
email = self.cleaned_data["email"]
allowed_domains = ['gmail.com', 'hotmail.com', 'yahoo.com']

if not any(email.endswith(dominio) for dominio in allowed_domains):
self.fields['email'].widget.attrs['class'] += ' error'
raise forms.ValidationError("Please, input a valid email address", code="invalid_email")

return email


Problem to style form fields with error

2024-04-24 Thread Guido Luis Dalla Vecchia
Hello! I'm building my first website with Django and I've been stuck for 
the past two months with a problem I can't figure out.
My website has a form with three fields that allow the user to input his 
first name, last name and email.
In my "forms.py" file, I've declared "clean" methods for each field, that 
add the "error" class to them if they don't pass the validation.
In my CSS file, I declared a rule that applies the "background-color: 
lightcoral" to all elements with the class ".error".
The problem is that, when I fill in the "last name" field with invalid 
data, the "first name" field gets marked as invalid too.
I've tried everything I could think of, and nothing has worked. It's 
driving me crazy!! Has anyone ever seen something like this?

Pleas help!!!

-- 
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/27559637-bab0-4d96-80f8-dd2a565fccd8n%40googlegroups.com.


Problem when styling form fields with errors

2024-04-24 Thread Guido Luis Dalla Vecchia
Hello! I'm building my first website with Django and for the last 2 months 
have been stuck with a problem with my form.
My webpage has a form with 3 fields that allow the user to input his first 
name, last name and email.
I've defined "clean" methods for all three fields in "forms.py", in which 
the class "error" is added to the fields if they don't pass the validation.
The problem is that, when I complete the "last name" field with invalid 
data and click the submit button, both this and the "first name" fields get 
marked as incorrect.

Has anyone ever seen something like this? It's driving me crazy!! I don't 
know what else to try.

-- 
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/670f57ad-47cc-4a01-b825-af0d426555d6n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-24 Thread villeantropist
I am in sir
+2348158951292

On Friday, March 15, 2024 at 8:49:19 PM UTC+1 Jorge Bueno wrote:

> Good evening everyone, I need help in my personal project to create an 
> agricultural and livestock marketplace and an agricultural and livestock 
> social network as a whole.Longer explanation:Farmers and ranchers leave 
> their products in our logistics centers and we publish on the web the 
> products they have brought us, then the customer orders the products with a 
> minimum purchase value to make it profitable and I take care of the 
> storage, packaging and shipping to customers. That is the part of getting 
> the products to the customer. In addition, we also have the part where the 
> producers can talk about the whole process behind it, the tasks they 
> perform daily, anecdotes and they can do it in video format apart from the 
> message if they wish. Currently, the project is in its initial phase. I 
> have created a detailed backlog and configured the repositories for the 
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are 
> discussing ideas and coordinating efforts. We currently have backend 
> developers and are looking for frontend developers as well, but the more 
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am 
> looking for someone who is willing to collaborate on this project, using 
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any 
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this 
> exciting project!
> PS: I've had people say they will collaborate on the project but then they 
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>

-- 
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/e817173f-3cf9-4553-a1ae-c0ad9ec61df9n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-23 Thread 1001_prabhjot Singh
Intrested 9877199920

On Sat, Mar 16, 2024, 1:19 AM Jorge Bueno 
wrote:

> Good evening everyone, I need help in my personal project to create an
> agricultural and livestock marketplace and an agricultural and livestock
> social network as a whole.Longer explanation:Farmers and ranchers leave
> their products in our logistics centers and we publish on the web the
> products they have brought us, then the customer orders the products with a
> minimum purchase value to make it profitable and I take care of the
> storage, packaging and shipping to customers. That is the part of getting
> the products to the customer. In addition, we also have the part where the
> producers can talk about the whole process behind it, the tasks they
> perform daily, anecdotes and they can do it in video format apart from the
> message if they wish. Currently, the project is in its initial phase. I
> have created a detailed backlog and configured the repositories for the
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are
> discussing ideas and coordinating efforts. We currently have backend
> developers and are looking for frontend developers as well, but the more
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am
> looking for someone who is willing to collaborate on this project, using
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this
> exciting project!
> PS: I've had people say they will collaborate on the project but then they
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>
> --
> 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/d160dccf-6582-4b1e-b9fe-186e10342b13n%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/CAMCYDrgFS1OVUc4kxaHW9C%3DFenbC143f1kFdP6Fy%3DQ3fEOGJVg%40mail.gmail.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-23 Thread Sujata Aghor
BTW your github pages are not accessible (giving #404 error) - Both links
frontend and backend.



On Tue, Apr 23, 2024 at 3:24 PM Sujata Aghor 
wrote:

> Hello
> I am interested in Python Django work.
> Whatsapp : 9881301878
>
>
>> On Saturday, March 16, 2024 at 1:19:19 AM UTC+5:30 Jorge Bueno wrote:
>>
>>> Good evening everyone, I need help in my personal project to create an
>>> agricultural and livestock marketplace and an agricultural and livestock
>>> social network as a whole.Longer explanation:Farmers and ranchers leave
>>> their products in our logistics centers and we publish on the web the
>>> products they have brought us, then the customer orders the products with a
>>> minimum purchase value to make it profitable and I take care of the
>>> storage, packaging and shipping to customers. That is the part of getting
>>> the products to the customer. In addition, we also have the part where the
>>> producers can talk about the whole process behind it, the tasks they
>>> perform daily, anecdotes and they can do it in video format apart from the
>>> message if they wish. Currently, the project is in its initial phase. I
>>> have created a detailed backlog and configured the repositories for the
>>> backend and frontend. Here are the links to the repositories:
>>>
>>> Backend: https://github.com/Programacionpuntera/Marketplace-again
>>>
>>> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>>>
>>> In addition, I have created a WhatsApp group for the project where we
>>> are discussing ideas and coordinating efforts. We currently have backend
>>> developers and are looking for frontend developers as well, but the more
>>> developers we have, the better.
>>>
>>> However, I am facing a challenge: I have no programming experience. I am
>>> looking for someone who is willing to collaborate on this project, using
>>> Python and Django for the backend, and Next.js and React for the frontend.
>>>
>>> Please feel free to take a look at the repositories and backlog. Any
>>> comments, suggestions or contributions will be greatly appreciated.
>>>
>>> Thanks for your time and I look forward to working with you on this
>>> exciting project!
>>> PS: I've had people say they will collaborate on the project but then
>>> they don't collaborate on the project, please don't be that kind of person.
>>>
>>> Best regards,
>>>
>>> Jorge
>>>
>> --
>> 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/36da31c9-307c-4aeb-b17e-3a37c3b18ab8n%40googlegroups.com
>> 
>> .
>>
>
>
> --
>
> Thanks & Regards!
> Sujata S. Aghor
>
>

-- 

Thanks & Regards!
Sujata S. Aghor

-- 
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/CAJCP8KAMSSs9gjuc3j7oYwrm4YZ3BjpLNUW8OuRxaVhqv4hFHA%40mail.gmail.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-23 Thread Sujata Aghor
Hello
I am interested in Python Django work.
Whatsapp : 9881301878


> On Saturday, March 16, 2024 at 1:19:19 AM UTC+5:30 Jorge Bueno wrote:
>
>> Good evening everyone, I need help in my personal project to create an
>> agricultural and livestock marketplace and an agricultural and livestock
>> social network as a whole.Longer explanation:Farmers and ranchers leave
>> their products in our logistics centers and we publish on the web the
>> products they have brought us, then the customer orders the products with a
>> minimum purchase value to make it profitable and I take care of the
>> storage, packaging and shipping to customers. That is the part of getting
>> the products to the customer. In addition, we also have the part where the
>> producers can talk about the whole process behind it, the tasks they
>> perform daily, anecdotes and they can do it in video format apart from the
>> message if they wish. Currently, the project is in its initial phase. I
>> have created a detailed backlog and configured the repositories for the
>> backend and frontend. Here are the links to the repositories:
>>
>> Backend: https://github.com/Programacionpuntera/Marketplace-again
>>
>> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>>
>> In addition, I have created a WhatsApp group for the project where we are
>> discussing ideas and coordinating efforts. We currently have backend
>> developers and are looking for frontend developers as well, but the more
>> developers we have, the better.
>>
>> However, I am facing a challenge: I have no programming experience. I am
>> looking for someone who is willing to collaborate on this project, using
>> Python and Django for the backend, and Next.js and React for the frontend.
>>
>> Please feel free to take a look at the repositories and backlog. Any
>> comments, suggestions or contributions will be greatly appreciated.
>>
>> Thanks for your time and I look forward to working with you on this
>> exciting project!
>> PS: I've had people say they will collaborate on the project but then
>> they don't collaborate on the project, please don't be that kind of person.
>>
>> Best regards,
>>
>> Jorge
>>
> --
> 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/36da31c9-307c-4aeb-b17e-3a37c3b18ab8n%40googlegroups.com
> 
> .
>


-- 

Thanks & Regards!
Sujata S. Aghor

-- 
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/CAJCP8KA5wrFF2%3DRuavsOBi%2B%2BhJyN8M2YJkrLA-jBs1OqnMEEmQ%40mail.gmail.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-21 Thread Ankit Patne
I can work with Python and Django part. Whatsapp : +91 9373579749

On Saturday, March 16, 2024 at 1:19:19 AM UTC+5:30 Jorge Bueno wrote:

> Good evening everyone, I need help in my personal project to create an 
> agricultural and livestock marketplace and an agricultural and livestock 
> social network as a whole.Longer explanation:Farmers and ranchers leave 
> their products in our logistics centers and we publish on the web the 
> products they have brought us, then the customer orders the products with a 
> minimum purchase value to make it profitable and I take care of the 
> storage, packaging and shipping to customers. That is the part of getting 
> the products to the customer. In addition, we also have the part where the 
> producers can talk about the whole process behind it, the tasks they 
> perform daily, anecdotes and they can do it in video format apart from the 
> message if they wish. Currently, the project is in its initial phase. I 
> have created a detailed backlog and configured the repositories for the 
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are 
> discussing ideas and coordinating efforts. We currently have backend 
> developers and are looking for frontend developers as well, but the more 
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am 
> looking for someone who is willing to collaborate on this project, using 
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any 
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this 
> exciting project!
> PS: I've had people say they will collaborate on the project but then they 
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>

-- 
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/36da31c9-307c-4aeb-b17e-3a37c3b18ab8n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-21 Thread Collins Emmanuel
Count me in  +254714411940

On Sun 21. Apr 2024 at 19:13, Michael Onuekwusi 
wrote:

> Interested please, 8072094026 whatsapp
>
> On Fri, Mar 15, 2024, 8:49 PM Jorge Bueno 
> wrote:
>
>> Good evening everyone, I need help in my personal project to create an
>> agricultural and livestock marketplace and an agricultural and livestock
>> social network as a whole.Longer explanation:Farmers and ranchers leave
>> their products in our logistics centers and we publish on the web the
>> products they have brought us, then the customer orders the products with a
>> minimum purchase value to make it profitable and I take care of the
>> storage, packaging and shipping to customers. That is the part of getting
>> the products to the customer. In addition, we also have the part where the
>> producers can talk about the whole process behind it, the tasks they
>> perform daily, anecdotes and they can do it in video format apart from the
>> message if they wish. Currently, the project is in its initial phase. I
>> have created a detailed backlog and configured the repositories for the
>> backend and frontend. Here are the links to the repositories:
>>
>> Backend: https://github.com/Programacionpuntera/Marketplace-again
>>
>> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>>
>> In addition, I have created a WhatsApp group for the project where we are
>> discussing ideas and coordinating efforts. We currently have backend
>> developers and are looking for frontend developers as well, but the more
>> developers we have, the better.
>>
>> However, I am facing a challenge: I have no programming experience. I am
>> looking for someone who is willing to collaborate on this project, using
>> Python and Django for the backend, and Next.js and React for the frontend.
>>
>> Please feel free to take a look at the repositories and backlog. Any
>> comments, suggestions or contributions will be greatly appreciated.
>>
>> Thanks for your time and I look forward to working with you on this
>> exciting project!
>> PS: I've had people say they will collaborate on the project but then
>> they don't collaborate on the project, please don't be that kind of person.
>>
>> Best regards,
>>
>> Jorge
>
>
>> --
>> 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/d160dccf-6582-4b1e-b9fe-186e10342b13n%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/CAPbPfKVfU3sZwH9D7L4K6oGDcqrRRcybzXnRPV0%3DtQ-jXe1odw%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/CABHPbCE26esZGrAaVt%2BatUcTWEKV_8TDBtcMdi6viqphjP_8vg%40mail.gmail.com.


How to solve Access to fetch at 'https://api.amadeus.com/v1/flight-offers' from origin 'http://127.0.0.1:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access contro

2024-04-21 Thread Эля Min
I have this one:from django.middleware.common import MiddlewareMixin
from django.http import JsonResponse

class CorsMiddleware(MiddlewareMixin):
def process_request(self, request):
if request.method == "OPTIONS" and 
"HTTP_ACCESS_CONTROL_REQUEST_METHOD" in request.META:
response = JsonResponse({"detail": "CORS policy allows this 
request"})
response["Access-Control-Allow-Origin"] = "*"
response["Access-Control-Allow-Methods"] = "GET, POST, PUT, 
DELETE, OPTIONS"
response["Access-Control-Allow-Headers"] = "Content-Type, 
Authorization"
return response
return None

def process_response(self, request, response):
response["Access-Control-Allow-Origin"] = "*"
response["Access-Control-Allow-Methods"] = "GET, POST, PUT, DELETE, 
OPTIONS"
response["Access-Control-Allow-Headers"] = "Content-Type, 
Authorization"
return response 
AND:
CORS_ALLOWED_ORIGINS = [
'http://127.0.0.1:8000', ]
BEFORE I DID PROXY,but my project stopped before starting. Please give me 
HElp

-- 
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/8b81f71d-f925-437a-9e39-4c1566b05709n%40googlegroups.com.


Re: Agricultural and livestock marketplace plus social network as a whole

2024-04-21 Thread Michael Onuekwusi
Interested please, 8072094026 whatsapp

On Fri, Mar 15, 2024, 8:49 PM Jorge Bueno 
wrote:

> Good evening everyone, I need help in my personal project to create an
> agricultural and livestock marketplace and an agricultural and livestock
> social network as a whole.Longer explanation:Farmers and ranchers leave
> their products in our logistics centers and we publish on the web the
> products they have brought us, then the customer orders the products with a
> minimum purchase value to make it profitable and I take care of the
> storage, packaging and shipping to customers. That is the part of getting
> the products to the customer. In addition, we also have the part where the
> producers can talk about the whole process behind it, the tasks they
> perform daily, anecdotes and they can do it in video format apart from the
> message if they wish. Currently, the project is in its initial phase. I
> have created a detailed backlog and configured the repositories for the
> backend and frontend. Here are the links to the repositories:
>
> Backend: https://github.com/Programacionpuntera/Marketplace-again
>
> Frontend: https://github.com/Programacionpuntera/Marketplace-Frontend
>
> In addition, I have created a WhatsApp group for the project where we are
> discussing ideas and coordinating efforts. We currently have backend
> developers and are looking for frontend developers as well, but the more
> developers we have, the better.
>
> However, I am facing a challenge: I have no programming experience. I am
> looking for someone who is willing to collaborate on this project, using
> Python and Django for the backend, and Next.js and React for the frontend.
>
> Please feel free to take a look at the repositories and backlog. Any
> comments, suggestions or contributions will be greatly appreciated.
>
> Thanks for your time and I look forward to working with you on this
> exciting project!
> PS: I've had people say they will collaborate on the project but then they
> don't collaborate on the project, please don't be that kind of person.
>
> Best regards,
>
> Jorge
>
> --
> 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/d160dccf-6582-4b1e-b9fe-186e10342b13n%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/CAPbPfKVfU3sZwH9D7L4K6oGDcqrRRcybzXnRPV0%3DtQ-jXe1odw%40mail.gmail.com.


Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread ASAMOAH EMMANUEL
from django.urls import path
from . import views

urlpatterns = [
path('login/', views.login_user, name='login'),
path('logout/', views.logout_request, name='logout'),
path('register/', views.registration, name='registration'),
]

On Wed, Apr 17, 2024 at 5:16 PM Ana Jiménez  wrote:

> the file that says i have wrong is this one:
> djangoapp/urls.py
> # Uncomment the required imports before adding the code
>
> from django.shortcuts import render
> from django.http import HttpResponseRedirect, HttpResponse
> from django.contrib.auth.models import User
> from django.shortcuts import get_object_or_404, render, redirect
> from django.contrib.auth import logout
> from django.contrib import messages
> from datetime import datetime
>
> from django.http import JsonResponse
> from django.contrib.auth import login, authenticate
> import logging
> import json
> from django.views.decorators.csrf import csrf_exempt
> from .populate import initiate
>
>
> # Get an instance of a logger
> logger = logging.getLogger(__name__)
>
>
> # Create your views here.
>
> # Create a `login_request` view to handle sign in request
> @csrf_exempt
> def login_user(request):
> # Get username and password from request.POST dictionary
> data = json.loads(request.body)
> username = data['userName']
> password = data['password']
> # Try to check if provide credential can be authenticated
> user = authenticate(username=username, password=password)
> data = {"userName": username}
> if user is not None:
> # If user is valid, call login method to login current user
> login(request, user)
> data = {"userName": username, "status": "Authenticated"}
> return JsonResponse(data)
>
> # Create a `logout_request` view to handle sign out request
> def logout_request(request):
> logout(request)
> data = {"userName": "", "status": "Logged out"}
> return JsonResponse(data)
> # ...
>
> # Create a `registration` view to handle sign up request
> @csrf_exempt
> def registration(request):
> context = {}
>
> data = json.loads(request.body)
> username = data['userName']
> password = data['password']
> first_name = data['firstName']
> last_name = data['lastName']
> email = data['email']
> username_exist = False
> email_exist = False
> try:
> # check if user already exists
> User.objects.get(username=username)
> username_exist = True
> except:
> #If not, simply log this is a new user
> logger.debug("{} is a new user".format(username))
>
> #If it is a new user, create a new user
> if not username_exist:
> #Create user in auth_user table
> user = User.objects.create_user(username=username, 
> first_name=first_name,
> last_name=last_name, email=email, password=password)
> #Login user and redirect to list page
> login(request, user)
> data = {"userName":username,"status": "Authenticated"}
> return JsonResponse(data)
> else :
> data = {"userName":username, "error":"Already exists"}
> return JsonResponse(data)
> # ...
>
> # # Update the `get_dealerships` view to render the index page with
> # a list of dealerships
> # def get_dealerships(request):
> # ...
>
> # Create a `get_dealer_reviews` view to render the reviews of a dealer
> # def get_dealer_reviews(request,dealer_id):
> # ...
>
> # Create a `get_dealer_details` view to render the dealer details
> # def get_dealer_details(request, dealer_id):
> # ...
>
> # Create a `add_review` view to submit a review
> # def add_review(request):
> # ...
>
> After that I added this urlpatterns
> from django.urls import path from . import views urlpatterns = [ path(
> 'login/', views.login_user, name='login'), path('logout/',
> views.logout_request, name='logout'), path('register/',
> views.registration, name='registration'),
> and i still got the following error :(
> Traceback (most recent call last):
>   File "manage.py", line 22, in 
> main()
>   File "manage.py", line 18, in main
> execute_from_command_line(sys.argv)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 442, in execute_from_command_line
> utility.execute()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 436, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 412, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 453, in execute
> self.check()
>   File
> 

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread Ana Jiménez
the file that says i have wrong is this one: 
djangoapp/urls.py
# Uncomment the required imports before adding the code

from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.models import User
from django.shortcuts import get_object_or_404, render, redirect
from django.contrib.auth import logout
from django.contrib import messages
from datetime import datetime

from django.http import JsonResponse
from django.contrib.auth import login, authenticate
import logging
import json
from django.views.decorators.csrf import csrf_exempt
from .populate import initiate


# Get an instance of a logger
logger = logging.getLogger(__name__)


# Create your views here.

# Create a `login_request` view to handle sign in request
@csrf_exempt
def login_user(request):
# Get username and password from request.POST dictionary
data = json.loads(request.body)
username = data['userName']
password = data['password']
# Try to check if provide credential can be authenticated
user = authenticate(username=username, password=password)
data = {"userName": username}
if user is not None:
# If user is valid, call login method to login current user
login(request, user)
data = {"userName": username, "status": "Authenticated"}
return JsonResponse(data)

# Create a `logout_request` view to handle sign out request
def logout_request(request):
logout(request)
data = {"userName": "", "status": "Logged out"}
return JsonResponse(data)
# ...

# Create a `registration` view to handle sign up request
@csrf_exempt
def registration(request):
context = {}

data = json.loads(request.body)
username = data['userName']
password = data['password']
first_name = data['firstName']
last_name = data['lastName']
email = data['email']
username_exist = False
email_exist = False
try:
# check if user already exists
User.objects.get(username=username)
username_exist = True
except:
#If not, simply log this is a new user
logger.debug("{} is a new user".format(username))

#If it is a new user, create a new user
if not username_exist:
#Create user in auth_user table
user = User.objects.create_user(username=username, 
first_name=first_name, 
last_name=last_name, email=email, password=password)
#Login user and redirect to list page
login(request, user)
data = {"userName":username,"status": "Authenticated"}
return JsonResponse(data)
else : 
data = {"userName":username, "error":"Already exists"}
return JsonResponse(data)
# ...

# # Update the `get_dealerships` view to render the index page with
# a list of dealerships
# def get_dealerships(request):
# ...

# Create a `get_dealer_reviews` view to render the reviews of a dealer
# def get_dealer_reviews(request,dealer_id):
# ...

# Create a `get_dealer_details` view to render the dealer details
# def get_dealer_details(request, dealer_id):
# ...

# Create a `add_review` view to submit a review
# def add_review(request):
# ...

After that I added this urlpatterns
from django.urls import path from . import views urlpatterns = [ path(
'login/', views.login_user, name='login'), path('logout/', 
views.logout_request, name='logout'), path('register/', views.registration, 
name='registration'), 
and i still got the following error :( 
Traceback (most recent call last):
  File "manage.py", line 22, in 
main()
  File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 442, in execute_from_command_line
utility.execute()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 412, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 453, in execute
self.check()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 485, in check
all_issues = checks.run_checks(
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/registry.py",
 
line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
 
line 14, in 

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread ASAMOAH EMMANUEL
check your urls.py file to make sure you haven't imported circularly. or
better still, paste your urls.py here

On Wed, Apr 17, 2024 at 4:47 PM Ana Jiménez  wrote:

> hi guys, so i'm doing a project and there's a part that says i need to do
> the migrations but when i do that i get this error
> "Traceback (most recent call last):
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
> line 717, in url_patterns
> iter(patterns)
> TypeError: 'module' object is not iterable
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File "manage.py", line 22, in 
> main()
>   File "manage.py", line 18, in main
> execute_from_command_line(sys.argv)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 442, in execute_from_command_line
> utility.execute()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
> line 436, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 412, in run_from_argv
> self.execute(*args, **cmd_options)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 453, in execute
> self.check()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
> line 485, in check
> all_issues = checks.run_checks(
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/registry.py",
> line 88, in run_checks
> new_errors = check(app_configs=app_configs, databases=databases)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
> line 14, in check_url_config
> return check_resolver(resolver)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
> line 24, in check_resolver
> return check_method()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
> line 495, in check
> messages.extend(check_resolver(pattern))
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
> line 24, in check_resolver
> return check_method()
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
> line 494, in check
> for pattern in self.url_patterns:
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/utils/functional.py",
> line 57, in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File
> "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
> line 725, in url_patterns
> raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
> django.core.exceptions.ImproperlyConfigured: The included URLconf ' 'djangoapp.urls' from
> '/home/project/xrwvm-fullstack_developer_capstone/server/djangoapp/urls.py'>'
> does not appear to have any patterns in it. If you see the 'urlpatterns'
> variable with valid patterns in the file then the issue is probably caused
> by a circular import. "
>
> and i don't know how to solve it :( i'm a beginner in django i need helppp
>
> --
> 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/f0b7aa30-2094-47ba-a93f-ed49b506e2ccn%40googlegroups.com
> 
> .
>


-- 
I don't stop when I'm tired, I only stop when the job is done.

-- 
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/CABFHQYzEBjdmvmrePg2YYuT%2BfJdYtXrxm6qhrpebH8CP4_z3_Q%40mail.gmail.com.


problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread Ana Jiménez
hi guys, so i'm doing a project and there's a part that says i need to do 
the migrations but when i do that i get this error
"Traceback (most recent call last):
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 717, in url_patterns
iter(patterns)
TypeError: 'module' object is not iterable

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 22, in 
main()
  File "manage.py", line 18, in main
execute_from_command_line(sys.argv)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 442, in execute_from_command_line
utility.execute()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/__init__.py",
 
line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 412, in run_from_argv
self.execute(*args, **cmd_options)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 453, in execute
self.check()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/management/base.py",
 
line 485, in check
all_issues = checks.run_checks(
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/registry.py",
 
line 88, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
 
line 14, in check_url_config
return check_resolver(resolver)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
 
line 24, in check_resolver
return check_method()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 495, in check
messages.extend(check_resolver(pattern))
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/core/checks/urls.py",
 
line 24, in check_resolver
return check_method()
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 494, in check
for pattern in self.url_patterns:
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/utils/functional.py",
 
line 57, in __get__
res = instance.__dict__[self.name] = self.func(instance)
  File 
"/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py",
 
line 725, in url_patterns
raise ImproperlyConfigured(msg.format(name=self.urlconf_name)) from e
django.core.exceptions.ImproperlyConfigured: The included URLconf '' 
does not appear to have any patterns in it. If you see the 'urlpatterns' 
variable with valid patterns in the file then the issue is probably caused 
by a circular import. " 

and i don't know how to solve it :( i'm a beginner in django i need helppp

-- 
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/f0b7aa30-2094-47ba-a93f-ed49b506e2ccn%40googlegroups.com.


Re: ModuleNotFoundError: No module named 'mysite'

2024-04-14 Thread Ahmad Irfan
have you checked your virtual env?

On Sun, 14 Apr 2024 at 5:38 AM, hikinthru  wrote:

> I am a new Django user and am setting up my first site on a local MAMP
> server. Django is running, but when I run `python manage.py makemigrations`
> I get the following error:
>
> ---
>
> Traceback (most recent call last):
>
>   File "/Applications/MAMP/htdocs/flashcards/manage.py", line 22, in
> 
>
> main()
>
>   File "/Applications/MAMP/htdocs/flashcards/manage.py", line 18, in main
>
> execute_from_command_line(sys.argv)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/__init__.py",
> line 446, in execute_from_command_line
>
> utility.execute()
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/__init__.py",
> line 440, in execute
>
> self.fetch_command(subcommand).run_from_argv(self.argv)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/base.py",
> line 427, in run_from_argv
>
> connections.close_all()
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/db/utils.py",
> line 212, in close_all
>
> for alias in self:
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
> line 73, in __iter__
>
> return iter(self.settings)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/functional.py",
> line 49, in __get__
>
> res = instance.__dict__[self.name] = self.func(instance)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
> line 45, in settings
>
> self._settings = self.configure_settings(self._settings)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/db/utils.py",
> line 148, in configure_settings
>
> databases = super().configure_settings(databases)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
> line 50, in configure_settings
>
> settings = getattr(django_settings, self.settings_name)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
> line 87, in __getattr__
>
> self._setup(name)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
> line 74, in _setup
>
> self._wrapped = Settings(settings_module)
>
>   File
> "/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
> line 183, in __init__
>
> mod = importlib.import_module(self.SETTINGS_MODULE)
>
>   File 
> "/opt/homebrew/Cellar/python@3.9/3.9.18_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
> line 127, in import_module
>
> return _bootstrap._gcd_import(name[level:], package, level)
>
>   File "", line 1030, in _gcd_import
>
>   File "", line 1007, in _find_and_load
>
>   File "", line 972, in
> _find_and_load_unlocked
>
>   File "", line 228, in
> _call_with_frames_removed
>
>   File "", line 1030, in _gcd_import
>
>   File "", line 1007, in _find_and_load
>
>   File "", line 984, in
> _find_and_load_unlocked
>
> ModuleNotFoundError: No module named 'mysite'
>
> --
>
> This is my wsgi.py file:
> """
> WSGI config for flashcards project.
>
> It exposes the WSGI callable as a module-level variable named
> ``application``.
>
> For more information on this file, see
> https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
> """
>
> import os
> import sys
>
> from django.core.wsgi import get_wsgi_application
>
> path = '/Applications/MAMP/htdocs/flashcards/flashcards'
>
> if path not in sys.path:
> sys.path.insert(0,path)
>
> BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
> sys.path.append(BASE_DIR)
> os.environ['DJANGO_SETTINGS_MODULE'] = 'flashcards.settings'
> os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'flashcards.settings')
>
> application = get_wsgi_application()
>
>
> I have searched my entire hard drive for a related config file referencing
> "mysite" and cannot find one. I'm unable to find anything online that
> points to where the error is coming from. The words, "mysite" do not exist
> on my hard drive except in some very old and archived php files in a
> completely different directory area.
>
> Does anyone have any ideas?
>
> Thanks so much,
>
> Sherrie
>
> --
> 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
> 

problem when i create a new django project

2024-04-14 Thread 无名氏
创建 Django 应用程序时出错: Python 端错误。退出代码: 1,错误: Traceback (most recent call 
last): File 
"D:\pycharm_stu\pycharm_stu_\plugins\python\helpers\pycharm\_jb_django_project_creator.py",
 
line 12, in   management.execute_from_command_line(argv=["django-admin", 
"startproject", project_name, path]) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\__init__.py",
 
line 446, in execute_from_command_line utility.execute() File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\__init__.py",
 
line 440, in execute 
self.fetch_command(subcommand).run_from_argv(self.argv) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\base.py", 
line 402, in run_from_argv self.execute(*args, **cmd_options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\base.py", 
line 448, in execute output = self.handle(*args, **options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\commands\startproject.py",
 
line 21, in handle super().handle("project", project_name, target, 
**options) File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\management\templates.py",
 
line 148, in handle django.setup() File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\__init__.py", line 16, 
in setup from django.urls import set_script_prefix File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\__init__.py", line 
1, in   from .base import ( File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\base.py", line 8, 
in   from .exceptions import NoReverseMatch, Resolver404 File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\urls\exceptions.py", 
line 1, in   from django.http import Http404 File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\http\__init__.py", line 
8, in   from django.http.response import ( File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\http\response.py", line 
16, in   from django.core.serializers.json import DjangoJSONEncoder File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\serializers\__init__.py",
 
line 23, in   from django.core.serializers.base import 
SerializerDoesNotExist File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\serializers\base.py", 
line 9, in   from django.db import models File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\db\models\__init__.py", 
line 40, in   from django.db.models.fields.files import FileField, 
ImageField File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\db\models\fields\files.py", 
line 8, in   from django.core.files.storage import Storage, default_storage 
File 
"D:\anaconda\envs\cuda11.3\lib\site-packages\django\core\files\storage\__init__.py",
 
line 3, in   from django.conf import DEFAULT_STORAGE_ALIAS, settings 
ImportError: cannot import name 'DEFAULT_STORAGE_ALIAS' from 'django.conf' 
(D:\anaconda\envs\cuda11.3\lib\site-packages\django\conf\__init__.py) ,输出:


 my django version is 4.2.11,  python version is 3.8,I was able to 
successfully run an existing Django project, but I got an error when 
creating the project

can anyone help me? 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/5eb98022-96fc-4c1b-83f5-ee72cda477cfn%40googlegroups.com.


ModuleNotFoundError: No module named 'mysite'

2024-04-13 Thread hikinthru
I am a new Django user and am setting up my first site on a local MAMP 
server. Django is running, but when I run `python manage.py makemigrations` 
I get the following error:

---

Traceback (most recent call last):

  File "/Applications/MAMP/htdocs/flashcards/manage.py", line 22, in 


main()

  File "/Applications/MAMP/htdocs/flashcards/manage.py", line 18, in main

execute_from_command_line(sys.argv)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/__init__.py",
 
line 446, in execute_from_command_line

utility.execute()

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/__init__.py",
 
line 440, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/core/management/base.py",
 
line 427, in run_from_argv

connections.close_all()

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/db/utils.py",
 
line 212, in close_all

for alias in self:

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
 
line 73, in __iter__

return iter(self.settings)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/functional.py",
 
line 49, in __get__

res = instance.__dict__[self.name] = self.func(instance)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
 
line 45, in settings

self._settings = self.configure_settings(self._settings)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/db/utils.py",
 
line 148, in configure_settings

databases = super().configure_settings(databases)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/utils/connection.py",
 
line 50, in configure_settings

settings = getattr(django_settings, self.settings_name)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
 
line 87, in __getattr__

self._setup(name)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
 
line 74, in _setup

self._wrapped = Settings(settings_module)

  File 
"/Applications/MAMP/htdocs/flashcards/flenv/lib/python3.9/site-packages/django/conf/__init__.py",
 
line 183, in __init__

mod = importlib.import_module(self.SETTINGS_MODULE)

  File 
"/opt/homebrew/Cellar/python@3.9/3.9.18_2/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
 
line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

  File "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", line 972, in _find_and_load_unlocked

  File "", line 228, in 
_call_with_frames_removed

  File "", line 1030, in _gcd_import

  File "", line 1007, in _find_and_load

  File "", line 984, in _find_and_load_unlocked

ModuleNotFoundError: No module named 'mysite'

--

This is my wsgi.py file:
"""
WSGI config for flashcards project.

It exposes the WSGI callable as a module-level variable named 
``application``.

For more information on this file, see
https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
"""

import os
import sys

from django.core.wsgi import get_wsgi_application

path = '/Applications/MAMP/htdocs/flashcards/flashcards'

if path not in sys.path:
sys.path.insert(0,path)

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
os.environ['DJANGO_SETTINGS_MODULE'] = 'flashcards.settings'
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'flashcards.settings')

application = get_wsgi_application()


I have searched my entire hard drive for a related config file referencing 
"mysite" and cannot find one. I'm unable to find anything online that 
points to where the error is coming from. The words, "mysite" do not exist 
on my hard drive except in some very old and archived php files in a 
completely different directory area.

Does anyone have any ideas?

Thanks so much,

Sherrie

-- 
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/ec322336-f97e-4ba6-a4a6-823ad576f989n%40googlegroups.com.


Login using phone and number

2024-04-13 Thread Yash Trivedi
I need a code for login using phone number and password without using 
form.py 
and tell me how can I do quickly 

-- 
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/aa859748-80f6-467b-a41b-30d54925bbd0n%40googlegroups.com.


Re: How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Luis Zárate
Also a recomendation, see that `dispatch` method call the view as

handler(request, *args, **kwargs)

So maybe is a good idea do something like:

class MyView(view):
 def put(self, request, *args, **kwargs):
...


Regards,

El vie, 12 abr 2024 a las 16:13, Luis Zárate ()
escribió:

> See
> https://docs.djangoproject.com/en/5.0/topics/class-based-views/#supporting-other-http-methods
> Also on view you have a variable called, where you can limit the available
> methods.
>
> http_method_names
>
>
> El vie, 12 abr 2024 a las 7:20, Mamadou Alpha Bah (<
> mamadoualphabah...@gmail.com>) escribió:
>
>> 
>>
>> I'm setting up a CRUD system with Django, using Class-Based Views.
>> Currently I'm trying to figure out how to handle HTTP PUT and DELETE
>> requests in my application. Despite searching the Django documentation
>> extensively, I'm having trouble finding concrete examples and clear
>> explanations of how to submit these types of queries to a class-based view.
>>
>> I created a view class named CategoryView, extending from:
>> django.views.View, in which I implemented the get and post methods
>> successfully. And I want to build my urls like this:
>>
>>1. New Category: 127.0.0.1:8000/backendapp/categories/create
>>2. List all Category: 127.0.0.1:8000/backendapp/categories/
>>3. Retrieve only one Category: 127.0.0.1:8000/backendapp/categories/1
>>4. Etc...
>>
>> However, when I try to implement the put and delete methods, I get stuck.
>>
>> For example :
>> from django.views import View
>>
>> class CategoryView(View):
>>  template_name = 'backendapp/pages/category/categories.html'
>>
>>  def get(self, request):
>>   categories = Category.objects.all()
>>   context = { 'categories': categories }
>>   return render(request, self.template_name, context)
>>
>>  def post(self, request):
>>   return
>>
>>  def delete(self, request, pk):
>>   return
>>
>>  def put(self, request):
>>   return
>>
>> I read through the Django documentation and found that Class-Based Views
>> support HTTP requests: ["get", "post", "put", "patch", "delete", "head ",
>> "options", "trace"].
>>
>> link:
>> https://docs.djangoproject.com/en/5.0/ref/class-based-views/base/#django.views.generic.base.View
>> 
>>
>> Despite this, I can't figure out how to do it.
>>
>> So I'm asking for your help to unblock me.
>>
>> I looked at the Django documentation and searched online for examples and
>> tutorials on handling HTTP requests in class-based views. I also tried
>> experimenting with adding the put and delete methods to my CategoryView
>> view class, but without success. I expected to find resources that clearly
>> explain how to integrate these queries into my Django application, as well
>> as practical examples demonstrating their use. However, I haven't found a
>> working solution and am now seeking help from the community to overcome
>> this difficulty.
>>
>> --
>> 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/b1ecd4a7-5946-4da5-80ae-5923b6648a70n%40googlegroups.com
>> 
>> .
>>
>
>
> --
> "La utopía sirve para caminar" Fernando Birri
>
>
>

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyNQtHhV3TPMtB4qLyipdjcnZBZA8_mwf-1_j2F%2B_sER5g%40mail.gmail.com.


Re: How to effectively use PUT and DELETE HTTP methods in Django Class-Based Views?

2024-04-12 Thread Luis Zárate
See
https://docs.djangoproject.com/en/5.0/topics/class-based-views/#supporting-other-http-methods
Also on view you have a variable called, where you can limit the available
methods.

http_method_names


El vie, 12 abr 2024 a las 7:20, Mamadou Alpha Bah (<
mamadoualphabah...@gmail.com>) escribió:

> 
>
> I'm setting up a CRUD system with Django, using Class-Based Views.
> Currently I'm trying to figure out how to handle HTTP PUT and DELETE
> requests in my application. Despite searching the Django documentation
> extensively, I'm having trouble finding concrete examples and clear
> explanations of how to submit these types of queries to a class-based view.
>
> I created a view class named CategoryView, extending from:
> django.views.View, in which I implemented the get and post methods
> successfully. And I want to build my urls like this:
>
>1. New Category: 127.0.0.1:8000/backendapp/categories/create
>2. List all Category: 127.0.0.1:8000/backendapp/categories/
>3. Retrieve only one Category: 127.0.0.1:8000/backendapp/categories/1
>4. Etc...
>
> However, when I try to implement the put and delete methods, I get stuck.
>
> For example :
> from django.views import View
>
> class CategoryView(View):
>  template_name = 'backendapp/pages/category/categories.html'
>
>  def get(self, request):
>   categories = Category.objects.all()
>   context = { 'categories': categories }
>   return render(request, self.template_name, context)
>
>  def post(self, request):
>   return
>
>  def delete(self, request, pk):
>   return
>
>  def put(self, request):
>   return
>
> I read through the Django documentation and found that Class-Based Views
> support HTTP requests: ["get", "post", "put", "patch", "delete", "head ",
> "options", "trace"].
>
> link:
> https://docs.djangoproject.com/en/5.0/ref/class-based-views/base/#django.views.generic.base.View
> 
>
> Despite this, I can't figure out how to do it.
>
> So I'm asking for your help to unblock me.
>
> I looked at the Django documentation and searched online for examples and
> tutorials on handling HTTP requests in class-based views. I also tried
> experimenting with adding the put and delete methods to my CategoryView
> view class, but without success. I expected to find resources that clearly
> explain how to integrate these queries into my Django application, as well
> as practical examples demonstrating their use. However, I haven't found a
> working solution and am now seeking help from the community to overcome
> this difficulty.
>
> --
> 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/b1ecd4a7-5946-4da5-80ae-5923b6648a70n%40googlegroups.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyNsQdYWD4W_Mfr%3DMfdP-DrbYeWf0qAgWDEN6TDbVOpR7A%40mail.gmail.com.


Re: DRF Trailing Slah

2024-04-12 Thread Luis Zárate
Check your URL.py and append the slash, also take a look of
https://docs.djangoproject.com/en/5.0/ref/settings/#append-slash


El vie, 12 abr 2024 a las 15:40, MISHEL HANNA ()
escribió:

> Hello
> i have endpoint when add / to the end of it i can not send request it
> return this
> Not Found: /api/v1/properties/user/
> [12/Apr/2024 20:19:03] "GET /api/v1/properties/user/ HTTP/1.1" 404 23
>
> but when remove / from the end of it return success
> [12/Apr/2024 20:19:09] "GET /api/v1/properties/user HTTP/1.1" 200 635
>
>
> --
> 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/d5b533b0-e482-4db5-8a4d-ce925aefcbf4n%40googlegroups.com
> 
> .
>


-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyNc9sNk_6qBoF9X7wMbEYtoLmj_Qo-9mXdHyHNSAkTWVQ%40mail.gmail.com.


DRF Trailing Slah

2024-04-12 Thread MISHEL HANNA
Hello
i have endpoint when add / to the end of it i can not send request it 
return this 
Not Found: /api/v1/properties/user/
[12/Apr/2024 20:19:03] "GET /api/v1/properties/user/ HTTP/1.1" 404 23

but when remove / from the end of it return success
[12/Apr/2024 20:19:09] "GET /api/v1/properties/user HTTP/1.1" 200 635


-- 
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/d5b533b0-e482-4db5-8a4d-ce925aefcbf4n%40googlegroups.com.


  1   2   3   4   5   6   7   8   9   10   >