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
>> <https://groups.google.com/d/msgid/django-users/36da31c9-307c-4aeb-b17e-3a37c3b18ab8n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
>
> 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: E-comm live project

2024-03-26 Thread Sujata Aghor
I am interested.
I have experience in Python Django for 10+ years

On Mon, Mar 25, 2024 at 6:30 PM oduwole samuel 
wrote:

> I'm interested 07083861162
>
> On Fri, Mar 22, 2024, 2:16 PM Md. Amjad Hosen 
> wrote:
>
>> Hi, I’m interested. Whatsapp number is +8801751023426
>>
>> On Friday, March 22, 2024 at 9:56:22 AM UTC+6 Collins Emmanuel wrote:
>>
>>> Hi, I’m interested. Whatsapp number is +254714411940
>>> <+254%20714%20411940>
>>>
>>> On Thu 21. Mar 2024 at 22:48, Emmanuel I. Ike 
>>> wrote:
>>>
 +2348139457804 <+234%20813%20945%207804>

 Sent from Yahoo Mail on Android
 

 On Tue, 19 Mar 2024 at 16:59, MANAS DEWARI
 <1mv20...@sirmvit.edu> wrote:
 Whastapp Number 9927882702

 On Tue, Mar 19, 2024 at 9:00 PM Chisom Iheanacho 
 wrote:

 Hi I am very interested and this is my WhatsApp number +2347041155897
 <+234%20704%20115%205897>

 On Mon, Mar 18, 2024, 7:45 PM Andrea Latorre 
 wrote:

 I'm in 3889249512


 Il lun 18 mar 2024, 18:26 1001_prabhjot Singh 
 ha scritto:

 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAMDbGketBuda11w4A_rksSvaPss_RWfG0vZSH82QeD2-B6jh_Q%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/CAFX7pJ33P%2BWwp%3DUJ4ox0LFzqM7pwnQZT9dJTCM%3DV1cjkazbdTg%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/CABAFCJPxC9omzxeTn2wJw-nWQiju0DFZyrSN1_UvrBYDzm3XfA%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/940023398.7868620.1711042683586%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/e08a4c76-cae2-45ae-889d-13c34b77142en%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 

Re: Freelance Django and Python work

2023-07-10 Thread Sujata Aghor
Hello,
I am very much interested in the above project.
You can view my profile  here
<https://www.linkedin.com/in/sujata-aghor-1b3a97189/>.
Thanks in advance!


‪On Tue, Jun 13, 2023 at 4:59 PM ‫אורי‬‎  wrote:‬

> Hi,
>
> I'm looking for a programmer to hire as a freelancer for Django and Python
> work.
>
> - Experience with Python and Django
> - Experience with open source
> - Committed to the Django repository on GitHub - an advantage
> - Committed to other open-source projects in Python - an advantage
> - Experience with Stack Overflow -  an advantage
> - BSc or BA in computers or science (math, physics) -  an advantage
> - Knowledge of HTML, CSS, and JavaScript - an advantage
> - Can issue receipts
>
> I need about 5 hours per month on average. Some months I might need up to
> 15 hours per month. Some months I might not need anything. The work is
> remote. My project is open source. I can give you a free license to
> PyCharm. My website is at https://en.speedy.net/ and
> https://github.com/speedy-net/speedy-net
>
> To apply please send one email to jobs+jango-freelan...@speedy.net, with
> your name, your email address, where you live, your experience, how many
> commits you committed to Django, how many commits you committed to other
> open source projects, a link to your profile on LinkedIn, a link to your
> profile on GitHub, a link to your profile on Stack Overflow, your diploma
> if you have any, how much you charge per hour and in which currency (I
> prefer USD or Euro), and if you can issue receipts. If you don't have a
> profile on one of the above websites please mention this too.
>
> Thanks,
> Uri Rodberg, Speedy Net.
> אורי
> u...@speedy.net
>
> --
> 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/CABD5YeHjQyFa75Mgq7nzcJ6AoX-WDeu75OOPfa2OngG2VTMaDQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABD5YeHjQyFa75Mgq7nzcJ6AoX-WDeu75OOPfa2OngG2VTMaDQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 

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


Whatsapp integration with django application

2023-01-24 Thread Sujata Aghor
Hello Django users,
I want to integrate whatsapp with my django application.
Reading through Meta for Developers?
Any help around this is most welcome.
Or another option is Twilio.
If anyone has tried any of this please suggest.

-- 

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


Re: Job -Fullstack python expert ( Django framework)

2022-08-19 Thread Sujata Aghor
I am also Interested.

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


Re: Looking for Django Developer - Co founder for Fintech Product

2022-08-17 Thread Sujata Aghor
Hello
I am interested if remote working is an option.

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


Re: How to validate xl data

2022-02-14 Thread Sujata Aghor
Hi Prashant,
If you are talking about server side validations, then you can do that for
each row/ cell values before inserting data into db.

Regards!

On Mon, Feb 14, 2022 at 12:05 PM Prashanth Patelc 
wrote:

> i am working on xl sheets , when im uploading the xl sheet it is storing
> into the models but i need before storing into the models validate the data
>
> eg:
> username : ,must be str not int
> reference id : ,must be int not str
> email : ,contains @gmail.com , not strt not int
>
> i need to validate like above
>
>
> *this is code my code *
> *working but i need validations*
>
>
> class UploadPersonView(APIView): permission_classes = [IsAuthenticated,
> IsAdminPermission | IsSuperAdminPermission]
> serializer_class = PersonUploadSerializer
> def post(self, request, *args, **kwargs):
> serializer = self.serializer_class(data=request.data)
> serializer.is_valid(raise_exception=True)
> dataset = Dataset()
> file = serializer.validated_data['file']
> imported_data = dataset.load(file.read(), format='xlsx')
> '''uploading xl file with particular data what user mentioned in xl we are
> looping the xl data
> and appending into the database with same fields''' # validate data here
> before upload
> for data in imported_data:
> person_data = UserProfile(username=d,
> fullname=data[1],
> mobile=d2,
> email=data[3],
> password=make_password(data[4]),
> date_joined=data[5],
> is_verified=data[6],
> is_active=data[7],
> is_admin=data[8],
> is_manager=data[9],
> is_tl=data[10],
> is_agent=data[11],
> orginization=data[12],
> dob=data[13],
> gender=data[14],
> team_name_id=data[15],
> role=data[16]
> )
> person_data.save()
> return Response({'sucessfully uploaded your file'}, status=status.
> HTTP_200_OK)
> except:
> return Response({'message': 'aaa'}, status=status.HTTP_404_NOT_FOUND)
>
> --
> 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/CAMCU6CrvCJzSCNjGTQ%2BgWjZ9ZURC%3Dk3H304WZ6vdQ5w812sisA%40mail.gmail.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/CAJCP8KC%3DkNehcD9ixe6VjxFVSvxe9rrFTMm3A941%2Btv9Ppe%3Dgg%40mail.gmail.com.


Re: Ajax call not working with X-editable

2022-02-14 Thread Sujata Aghor
>
> You must send in all post and ajax post everytime CSRF Token. Please try
> it.
>
Yes ..Yes .. I am sending a csrf token.


> When you send it which response you get from django?

ajax call is not getting called only.
The same ajax call is working for other use cases, but not getting called
when using it this way for loading 'source' - x editable.


On Mon, Feb 14, 2022 at 1:31 PM Sebastian Jung 
wrote:

> Hello,
>
> You must send in all post and ajax post everytime CSRF Token. Please try
> it.
>
> When you send it which response you get from django?
>
> Regards
>
> Sujata Aghor  schrieb am Mo., 14. Feb. 2022,
> 07:03:
>
>> Hello Django lovers,
>>
>> I am trying to use inline edit using X-editable
>> <https://vitalets.github.io/x-editable/docs.html>
>>
>> Here I am trying to fill 'source' value with an ajax call, which will
>> fill a dropdown on every click.
>> But it's not working. If anyone tried this earlier please let me know.
>> If I fill the source with static values it works.
>>
>> Also I am aware of the concept  that  Ajax stands for *asynchronous*.
>> That means sending the request (or rather receiving the response) is taken
>> out of the normal execution flow. So I even tried to code it slightly
>> differently (option2 below) which I am sharing with you. That also is not
>> working for me.
>>
>>
>>
>> For ref sharing my code :
>>
>> *HTML has something like this:*
>>
>>  
>>  > data-pk="1" data-value="" data-title="Select user" class="editable
>> editable-click" data-abc="true">{{obj.user.first_name}}
>> {{obj.user.last_name}} 
>> 
>> 
>>   
>>
>> *Java script part :*
>>
>> *Option1:*
>>
>> > rel="stylesheet" />
>> 
>>
>> 

Ajax call not working with X-editable

2022-02-13 Thread Sujata Aghor
Hello Django lovers,

I am trying to use inline edit using X-editable


Here I am trying to fill 'source' value with an ajax call, which will fill
a dropdown on every click.
But it's not working. If anyone tried this earlier please let me know.
If I fill the source with static values it works.

Also I am aware of the concept  that  Ajax stands for *asynchronous*. That
means sending the request (or rather receiving the response) is taken out
of the normal execution flow. So I even tried to code it slightly
differently (option2 below) which I am sharing with you. That also is not
working for me.



For ref sharing my code :

*HTML has something like this:*

 
 {{obj.user.first_name}}
{{obj.user.last_name}} 


  

*Java script part :*

*Option1:*





Re: Defining a custom email backend

2021-09-23 Thread Sujata Aghor
Got my answer here -
https://stackoverflow.com/questions/43857594/django-set-e-mail-settings-in-view/43881974#43881974
Setting up values for connection object from database for specific reseller.
Thanks

On Thu, Sep 23, 2021 at 11:09 AM Sujata Aghor 
wrote:

> *settings.py : *
> DEFAULT_FROM_EMAIL = '*'
> EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
> EMAIL_HOST = 'smtp.gmail.com'
> EMAIL_USE_TLS = True
> EMAIL_PORT = ***
> EMAIL_HOST_USER = '*"
> EMAIL_HOST_PASSWORD = '***"
>
>
> *script.py :*
>
> from_email = DEFAULT_FROM_EMAIL
> vars_dict = dict(tasks=usr_tasks,
>  reminder=reminder,
>  reseller=reseller,
>  logo=logo,
>  host=host,
>  )
>
> # get values: r_email and r_pass specific to this reseller
> r_obj = Reseller.objects.get(id=rid)
> r_email = r_obj.remail if r_obj.remail else None
> r_pass = r_obj.rpass if r_obj.rpass else None
>
> html_message = loader.render_to_string(
> template,vars_dict)
>
> if subject and message and from_email:
> print("Sending mail to %s"%recipient)
> try:
> if r_email and r_pass:
>
> send_mail(subject,message,from_email,recipient,fail_silently=True,
> EMAIL_HOST_USER=r_email,
> EMAIL_HOST_PASSWORD=r_pass, html_message=html_message)
> else:
>
> send_mail(subject,message,from_email,recipient,fail_silently=True,html_message=html_message)
> except Exception as e:
> print(e)
> else:
> print("Mail sent successfully!")
>
>
> -
> Roughly this is my code.
> in line -
> send_mail(subject,message,from_email,recipient,fail_silently=True,
> EMAIL_HOST_USER=r_email,
> EMAIL_HOST_PASSWORD=r_pass, html_message=html_message)
> its giving me error - send_mail() got an unexpected keyword argument
> 'EMAIL_HOST_USER'
>
> Can you suggest anything about this ?
> Thanks
>
>
> On Thu, Sep 23, 2021 at 10:57 AM sum abiut  wrote:
>
>> If you don't mind sharing your code here.
>>
>> cheers,
>>
>> On Thu, Sep 23, 2021 at 4:17 PM Sujata Aghor 
>> wrote:
>>
>>> Hello Everyone,
>>> I want to use different values of - EMAIL_HOST_USER &
>>> EMAIL_HOST_PASSWORD for each of my users. I will take those values from
>>> database and not from settings.py
>>>
>>> In django documentation I can see only a single paragraph about defining
>>> a custom email backend, which is not giving me enough ideas.
>>>
>>> If I Try to change value of EMAIL_HOST_USER in script, it gives me below
>>> error -
>>> send_mail() got an unexpected keyword argument 'EMAIL_HOST_USER'
>>> How to change these two values in a script?
>>> Can anyone help here please.
>>>
>>>
>>> --
>>>
>>> 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/CAJCP8KC9Acj36VhnY1UqnpFtVb_xGLkZgmZJgPyugdhmH2QvOQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAJCP8KC9Acj36VhnY1UqnpFtVb_xGLkZgmZJgPyugdhmH2QvOQ%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> 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/CAPCf-y7FU4Emm28oKcZD09gwA78kzPAzN56XbynNHMrUDBAvMA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPCf-y7FU4Emm28oKcZD09gwA78kzPAzN56XbynNHMrUDBAvMA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
>
> 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/CAJCP8KA3LQ_A8RkPZGiqkSaTmR1KBU%3Dg%2BNPhNFPGbfSrSLxw7g%40mail.gmail.com.


Re: Defining a custom email backend

2021-09-22 Thread Sujata Aghor
*settings.py : *
DEFAULT_FROM_EMAIL = '*'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_PORT = ***
EMAIL_HOST_USER = '*"
EMAIL_HOST_PASSWORD = '***"


*script.py :*

from_email = DEFAULT_FROM_EMAIL
vars_dict = dict(tasks=usr_tasks,
 reminder=reminder,
 reseller=reseller,
 logo=logo,
 host=host,
 )

# get values: r_email and r_pass specific to this reseller
r_obj = Reseller.objects.get(id=rid)
r_email = r_obj.remail if r_obj.remail else None
r_pass = r_obj.rpass if r_obj.rpass else None

html_message = loader.render_to_string(
template,vars_dict)

if subject and message and from_email:
print("Sending mail to %s"%recipient)
try:
if r_email and r_pass:

send_mail(subject,message,from_email,recipient,fail_silently=True,
EMAIL_HOST_USER=r_email,
EMAIL_HOST_PASSWORD=r_pass, html_message=html_message)
else:

send_mail(subject,message,from_email,recipient,fail_silently=True,html_message=html_message)
except Exception as e:
print(e)
else:
print("Mail sent successfully!")

-
Roughly this is my code.
in line -
send_mail(subject,message,from_email,recipient,fail_silently=True,
EMAIL_HOST_USER=r_email,
EMAIL_HOST_PASSWORD=r_pass, html_message=html_message)
its giving me error - send_mail() got an unexpected keyword argument
'EMAIL_HOST_USER'

Can you suggest anything about this ?
Thanks


On Thu, Sep 23, 2021 at 10:57 AM sum abiut  wrote:

> If you don't mind sharing your code here.
>
> cheers,
>
> On Thu, Sep 23, 2021 at 4:17 PM Sujata Aghor 
> wrote:
>
>> Hello Everyone,
>> I want to use different values of - EMAIL_HOST_USER &
>> EMAIL_HOST_PASSWORD for each of my users. I will take those values from
>> database and not from settings.py
>>
>> In django documentation I can see only a single paragraph about defining
>> a custom email backend, which is not giving me enough ideas.
>>
>> If I Try to change value of EMAIL_HOST_USER in script, it gives me below
>> error -
>> send_mail() got an unexpected keyword argument 'EMAIL_HOST_USER'
>> How to change these two values in a script?
>> Can anyone help here please.
>>
>>
>> --
>>
>> 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/CAJCP8KC9Acj36VhnY1UqnpFtVb_xGLkZgmZJgPyugdhmH2QvOQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJCP8KC9Acj36VhnY1UqnpFtVb_xGLkZgmZJgPyugdhmH2QvOQ%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>
>
> --
> 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/CAPCf-y7FU4Emm28oKcZD09gwA78kzPAzN56XbynNHMrUDBAvMA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPCf-y7FU4Emm28oKcZD09gwA78kzPAzN56XbynNHMrUDBAvMA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 

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/CAJCP8KDsQQPoG%3DFHWJ-cQ3Pftt0gpGTwUwXepy9vpj2Vxt6Tzg%40mail.gmail.com.


Defining a custom email backend

2021-09-22 Thread Sujata Aghor
Hello Everyone,
I want to use different values of - EMAIL_HOST_USER & EMAIL_HOST_PASSWORD
for each of my users. I will take those values from database and not from
settings.py

In django documentation I can see only a single paragraph about defining a
custom email backend, which is not giving me enough ideas.

If I Try to change value of EMAIL_HOST_USER in script, it gives me below
error -
send_mail() got an unexpected keyword argument 'EMAIL_HOST_USER'
How to change these two values in a script?
Can anyone help here please.


-- 

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


context.py values not render into tamplate when log in from email link

2021-09-20 Thread Sujata Aghor
I have set some variables in  context.py, which need to be rendered in the
base template of an application. It's working fine when I normally log in
into the system.
BUT I have an email workflow feature. So when I log in via a link in email,
that time it won't render the values in the base template.
Why is this so? Am I missing anything?
Please advise.
-- 

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/CAJCP8KDwm20VNeFd0q-TaSqwavn1M%2BZOJWU%2ByrOAEdhYuQ_7rg%40mail.gmail.com.


Re: Python Django Training

2020-12-08 Thread Sujata Aghor
I m in 

On Tue, Dec 8, 2020 at 6:59 AM cmailu06  wrote:

> I am interested
>
>
>
>
> Sent from my Galaxy
>
>
>  Original message 
> From: Chuck 
> Date: 08/12/2020 02:42 (GMT+03:00)
> To: django-users@googlegroups.com
> Subject: Re: Python Django Training
>
> I am also interested.
>
> Thanks,
> Chuck
>
> On Monday, December 7, 2020, 06:53:12 AM PST, elon musk <
> adithyagowli1...@gmail.com> wrote:
>
>
> I am also interested I am also from hyd
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *tech george 
> *Sent: *Monday, December 7, 2020 7:24 PM
> *To: *django-users@googlegroups.com
> *Subject: *Re: Python Django Training
>
>
>
> I want in too
>
>
>
> On Mon, 7 Dec 2020, 16:43 Hector Berrones,  wrote:
>
> I am interested.
>
>
>
> On Mon, Dec 7, 2020, 2:09 AM narendra thapa 
> wrote:
>
> hello please add me also in training group?
>
>
>
>
>
> On Fri, Feb 21, 2020 at 7:27 PM Bharati Nilam 
> wrote:
>
> Hi,
>
> I also from Hyderabad and I'm also interested in the training. please tell
> me how to join?
>
>
>
> Regards,
>
> Bharati
>
> On Thu, 20 Feb, 2020, 6:19 PM Thiagu Palaniappan, <
> thiagarajan@gmail.com> wrote:
>
> I'm also interested. Please add me in the group.
>
>
>
>
>
> Thanks & Regards,
>
> Thiagu
>
>
>
> On Mon, Feb 17, 2020 at 12:41 AM Akshay Raul 
> wrote:
>
> I am interested also. Please let me know the details.
>
>
>
> On Sat 1 Feb, 2020, 2:42 PM Srikanth K,  wrote:
>
> Hi,
>
>
>
> I am from Hyderabad. I am Python Developer by Profession. I am eager take
> up any Python , Django Training (online Preferrable or Weekends). Members
> who require can contact me or share me  there idea.
>
>
>
> Regards,
>
> Srikanth.K
>
> --
> 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/CACPyz-gXb7wo9E0Uhs_pnxF9X52uA10__Fq1xt4trjXUaN3ehQ%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/CAEd%2Bv%3D0gE2dEMXKJ0Nm8FcH2ZxUPAdQspkQKB%2Bg5pZbSc_uZnQ%40mail.gmail.com
> 
> .
>
>
>
>
> --
>
> Thanks & Regards,
>
> *Thiagu Palaniappan*
>
> M +91 (0) 9994318799
>
> *DXC Technology*
> 8th Floor, Tower 1 B DLF IT Park, 1/124 - Shivaji Garden, Nandambakkam
> post, Ramapuram, Chennai - 600 089.
>
> dxc.technology  / Twitter
>  / Facebook
>  / LinkedIn
> 
>
> --
> 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/CAK%3DQXNMzH-iL6BQ3_vfrvTpeY%2BSe5%3DbZm9h5wPW_Dw%2BM2BsvQg%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/CAPGVBeOgomb94NXAm347QqGcJ%3D3MzxULU7eQnY-M56EbC2D9vg%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/CAEtntjXVaVAyDCJJzS748zfNVm242U%2B6vsFkynevf5ghnPgDhw%40mail.gmail.com
> 
> .
>
> --
> You received this message 

Is it possible to use the built-in LogEntry to track actions of every users not only in admin page?

2020-11-24 Thread Sujata Aghor
Hello Django lovers,

I am looking for something to track the actions of all users on my website.
The LogEntry class tracks additions, changes, and deletions of objects done
through the admin interface.
Can we track other users' actions also in LogEntry?
Any help is much appreciated.
Any suggestion other than LogEntry is also most welcome.


-- 

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/CAJCP8KBrvsgzoLFnTQfeFwP%3DRLd2dKL%2BzuGyWhV504vQey6_cQ%40mail.gmail.com.


how to override options of choices in django model form

2020-07-28 Thread Sujata Aghor
Hello All,

How can I override options of choices in django model form from the model
field ?
Below is my code -

*models.py:*

class XXX(models.Model):
StatusType = models.TextChoices('StatusType', const.status_values)
status = models.CharField(max_length=100, default='abc',
choices=StatusType.choices,)


*views.py:*

class XXXUpdateView(LoginRequiredMixin, UserPassesTestMixin, UpdateView):
model = XXX
fields = ['aaa', 'bbb', 'status']

def get_form(self):
form = super().get_form()
form.title = self.kwargs['title']
   # NOW HERE I WANT TO RESET THE VALUE OF STATUS DROPDOWN BASED ON
CERTAIN CONDITION.
return form
-- 

Can anyone suggest something
Thanks in advance !

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/CAJCP8KB06LxS8m8iNfpe0h30Sa%3Dro2N1AuyGM4sQXreW4f-Pig%40mail.gmail.com.


Re: How to provide background image via url() in django

2020-07-16 Thread Sujata Aghor
I set background image like below in the style tag of the html page. It
works !


   body{
background: url({% static 'users/img/bg/name_of _image.png'%})
no-repeat center center fixed;
-webkit-background-size:cover;
-moz--background-size:cover;
-o--background-size:cover;
background-size: cover;
   }




On Fri, Jul 17, 2020 at 4:38 AM sunday honesty 
wrote:

> Hi django users, pls help me with this:
>
> In case we supply background image via the url() function as
> background-image: url("some_path/image.png")
>
> How do we do this in django static files?
> I tried
>
> url("{% static 'some_path/image.png' %}")
>
> but it didn't work, how do I do this pls?
>
> --
> 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/c711150b-910c-4cbb-9823-48e0657fe352o%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/CAJCP8KCtHz%2BUqqU6ez57ELfT5ouHTrDRzbvPVYKYMcv3EUV1Mw%40mail.gmail.com.


Database audit fields in Django

2020-05-22 Thread Sujata Aghor
I am looking to create a database audit fields such as 'created by' , ' 
modified by', 'created on time', ' modified on time' and Archive table 
where i can see the changes over the time about perticular row.

this was possible in web2py automatically. Does anyone knows any such thing 
exist in Django?
Any idea will be a gr8 help.
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/05b8bddb-d2b3-4c97-a2ef-f02ad4311e3c%40googlegroups.com.