Re: Defining a custom email backend

2021-09-22 Thread sum abiut
You can create your own connection and then pass to send_mail() connection = get_connection(host=my_host, port=my_port, username=my_username, password=my_password, use_tls=my_use_tls) s

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

Re: Defining a custom email backend

2021-09-22 Thread sum abiut
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 dj

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 en

Re: Hello Everyone

2021-09-22 Thread bnmng
I'm not sure but you might be calling a function without the parentheses somewhere. Seems like the function would return an object that has a _meta attribute, but without the parentheses the code is looking at the function itself, and not the object that the function returns On Wednesday, Sep

Cannot start Daphne / Looking for channels production deployment with daphne/nginx

2021-09-22 Thread mab.mo...@gmail.com
Hello, I am attempting to add asgi/channels to an existing django project/web app. I was originally able to get channels to work via python manage.py runserver I am trying to deploy the project in production but cannot cat Daphne to start. Error messages and relevant files below. Questi

Re: How to check if lock is acquired in Django pglock

2021-09-22 Thread Kasper Laudrup
On 22/09/2021 17.18, Sencer Hamarat wrote: Say, I have code block lie this:            lock_id = "non_unique_lock" with advisory_lock(lock_id, wait=True) as acquired: # things to do While one process has the lock, when the secondary process runs the same code block, the secon

Re: How to check if lock is acquired in Django pglock

2021-09-22 Thread Sencer Hamarat
Say, I have code block lie this: lock_id = "non_unique_lock" with advisory_lock(lock_id, wait=True) as acquired: # things to do While one process has the lock, when the secondary process runs the same code block, the secondary process must raise an exception if it can't acquire th

How to check if lock is acquired in Django pglock

2021-09-22 Thread Sencer Hamarat
Using django pglock I want to check if lock is acquired by another process How can I do it? -- 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

Mange ManyToMany relational model for offline syncing

2021-09-22 Thread Shuham Bansal
Hi, Anyone who can help me to manage ManyToMany relation model for offline data syncing. My points are following. 1. How we can detect updated data, or deleted data in ManyToMany table (which is created by djnago default to manage realtion data) 2. Can we access ManyToMany table's primary id fi

Re: Deploy help

2021-09-22 Thread Rishikesh Agrawani
Please provide the absolute path for static files does so that Django will be able to find and collect before putting to static root. On Tue, 21 Sep 2021, 10:05 pm Daniel Gauvin, < daniel.gau...@solutionsnc.qc.ca> wrote: > Hi, > > I am looking for support to deploy a Django application on cPanel.

Need help for offline data sync of ManyToMany relation table

2021-09-22 Thread Shuham Bansal
Hi, I want to know about, how we can manage ManyToMany relation table for offline data sync, where frontend pass the data as different model for ManyToMany relation field. Can anyone suggest me some tips. Thanks -- You received this message because you are subscribed to the Google Groups "D

Study on technical debt and source code commenting

2021-09-22 Thread Massimiliano Di Penta
Hello, We're a team of Software Engineering researchers investigating technical debt. Technical debt refers to "not quite right code which we postpone making it right” (Cunningham) and this may often introduce a cost. More specifically, the aim of this study is to gather information on how op

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-22 Thread bnmng
Fantastic! But now I wonder why it's not working on some of your browsers On Wednesday, September 22, 2021 at 4:18:14 AM UTC-4 nine...@gmail.com wrote: > Hi, > > Eureka!!! > Benjamin, you are right. I changed my browser and it worked. > > Thank for you advice. > > Best wishes, > Maria > > On T

Re: django-admin doesn't display choices and it's not possible to select one

2021-09-22 Thread Mariangeles Mendoza
Hi, Eureka!!! Benjamin, you are right. I changed my browser and it worked. Thank for you advice. Best wishes, Maria On Tuesday, September 21, 2021 at 9:41:18 AM UTC+2 Mariangeles Mendoza wrote: > Thank you very much!!! > > I will try other browsers. I have used Firefox and Brave. > No, I am