Dostow
Good afternoon, I have question, how can I send an email with a delay of let's say 30 seconds after an authorization to stripe is successful?
Михаил
Dostow
No other easier way?
Михаил
I would do this
Dostow
I see
Dostow
I was trying to do it with Django signals but I can not find a way
Mirco
No other easier way?
The main problem is that without doing it async or in background, you force the user to wait for 30 secs! Unacceptable in terms of UX
Dostow
Yes I could see it
Dostow
Thanks Mirco and Mijail
Mirco
Doragonsureiyā
Kola
hello. who knows how to solve the problem. PostgreSQL 15 not working in django project who can help
Doragonsureiyā
Kola
when entering data in databases, it displays an error:django.db.utils.OperationalError: could not translate host name "Mysite_rootdb" to address: nodename nor servname provided, or not known
Maxim
Kola
django.db.utils.OperationalError: connection to server at "localhost" (::1), port 8000 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
connection to server at "localhost" (127.0.0.1), port 8000 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?
Kola
if anyone knows how to solve it. I'll be very thankful.
Kola
5432
Mirco
5432
Yes but you are trying to connect to the 8000
Read the error from pg
Kola
django.db.utils.OperationalError: connection to server at "localhost" (::1), port 5432 failed: FATAL: role "postgres" does not exist
Mirco
Kola
I started to study this topic on udemy and I can't figure out what is wrong
Kola
Mirco
Kola
Oh okay
Kola
I'm using PostgreSQL 15. and it's enabled now.
Kola
psql (PostgreSQL) 14.6 (Homebrew)
Kola
and it works for me. and i created a DATABASE there
Mirco
psql (PostgreSQL) 14.6 (Homebrew)
So it's not postgres 15 😅 be sure not to have multiple versions that is making mess
Anyway use the same config in Django settings and it will work
Kola
I use but it doesn't work. I named exactly the same as the project. the password was made of numbers. there are no errors. I do not understand what the problem is
Mirco
psql (PostgreSQL) 14.6 (Homebrew)
You don't need password if here you entered without it
If you ran the command I sent you, your access doesn't have password
At least for postgres user
Kola
I created DATABASE and created a password there and also entered it into the project. I wanted to send a screenshot. I'm sorry that I wrote in the chat, I did not notice
Kola
I decided everything. Thank you 😊
Viachaslau
Hello. Can anyone help me implement some django admin functionality on my page?
Doragonsureiyā
Lena
Yes, absolutely! The Django Admin documentation provides all of the necessary tools and documentation to help you get started with implementing admin functionality. Here are some helpful resources to get you started:
1. The Django Admin documentation: https://docs.djangoproject.com/en/3.1/ref/contrib/admin/
2. The Django Admin Tutorial: https://docs.djangoproject.com/en/3.1/intro/tutorial02/
3. The Django Admin Cookbook: https://books.agiliq.com/projects/django-admin-cookbook/en/latest/
4. The Django Admin YouTube Tutorial: https://www.youtube.com/watch?v=hQVVjK3P3xE
5. The Django Admin Tutorial from RealPython: https://realpython.com/django-admin/
Good luck!
Lena
It would be helpful if you could provide some more information about your difficulties. That way, we can better understand the situation and provide better advice.
Lena
Until is a word used to express a point in time or condition that must be reached before something else can happen. For example, "I will not leave until I get an answer."
MHJ
For my Persian friends who lives in iran answer me
how you can use Djangoproject website ? with Vpn?
MHJ
Y
Aaron
Hey am new here can someone help me with my bloging app
Aaron
When the user adds the data to db by creating the post i got the same multiple posts
Doragonsureiyā
Aaron
So what's the solution
Maxim
Aaron
How can handle the posts that are raised from the users correctly
Rahat
Tell me one question
Rahat
Media _url path pass YouTube
Rahat
In django MEDIA _URL media folder path pass private YouTube channel
Gaurav Chaudhary
What if improperlyConfigured Djongo
Gaurav Chaudhary
Exception
Gaurav Chaudhary
*is
Jayanthi
How to return all data in for loop using Return Response API
Maxim
Jayanthi
I have a dict that fetches the data from multiple table .. and i have looped it i want to return all the data which is in for loop
Mohammed
Nikita
!ol
Doragonsureiyā
Python groups in other languages
(‼️ Not managed by us ‼️)
Amharic @python_amharic
Arabic @arabipython
Azerbaijani @azepug
Chinese @pythonzh
French @python_francais
German @pythonde
Hebrew @pythonisrael
Hindi @pyhindi
Tamil @pythontamilcommunity
Indonesian @pythonid
Italian @python_ita @pythonita
Kazakh @python_kz
Malaysia @pythonmalaysia
Persian @pyfarsi
Portuguese @pythonbr
Russian @ru_python_beginners @ru_python @python_scripts
Spanish @PythonEsp
Swahili @python_eafrica
Turkish @python_tr
Uzbek @python_uz
If you have an (active) group you want to add, ask in the meta group, link in the rules page.
SomeBody
hello! How i can change UUID (ID) in django? When i change this propery django generate new record in model, but unchange record
Doragonsureiyā
SomeBody
Ok. I try change uuid field with this: setattr(record, "id", uuid.UUID(new_uuid)) and record.id = new_uuid. But django generate new record :(
If this really organizate, pls help me
Maxim
SomeBody
ok, thx
Sh
Kay!
Hello guys , I'm trying to display/render PDF which is Stored in a media folder using iframe. But it's not rendering the PDF
Can anybody help me with this ?
Gaurav Chaudhary
Using jinja
Gaurav Chaudhary
Templating engine
Gaurav Chaudhary
?
Bagaudin
Jinja2
Smile
hello
Who can suggest a good tutorial how to write unittests for CBV ? can't find a good explanation