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
Doragonsureiyā
Thanks Mirco and Mijail
You're welcome! 😊
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
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
you mixed up the parameters of one of the functions or configuration entries you tried to use a database name where you need a host name
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.
Mirco
if anyone knows how to solve it. I'll be very thankful.
Postgres is not listening on 8000 port localhost If you didn't change default port, postgres is listening on 5432
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
Kola
I started to study this topic on udemy and I can't figure out what is wrong
Mirco
I started to study this topic on udemy and I can't figure out what is wrong
You have to install postgres and starting it up Otherwise it won't work So study what is and how postgres works At least basics
Kola
Oh okay
Kola
I'm using PostgreSQL 15. and it's enabled now.
Mirco
I'm using PostgreSQL 15. and it's enabled now.
Install psql, run in your terminal psql -U postgres And check if you are logged in
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ā
Hello. Can anyone help me implement some django admin functionality on my page?
No one can help you until you explain your difficulties.
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?
Doragonsureiyā
For my Persian friends who lives in iran answer me how you can use Djangoproject website ? with Vpn?
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
Aaron
Hey am new here can someone help me with my bloging app
Doragonsureiyā
Hey am new here can someone help me with my bloging app
No one can help you until you explain your difficulties.
Aaron
When the user adds the data to db by creating the post i got the same multiple posts
Aaron
So what's the solution
Maxim
So what's the solution
not enough information
Aaron
How can handle the posts that are raised from the users correctly
The Inspired
When the user adds the data to db by creating the post i got the same multiple posts
You have to make something unique in your DB... which cannot be a duplicate... for e.g. You could make the post name unique so that any 2 posts cannot have the same name.
Rahat
Tell me one question
Rahat
Media _url path pass YouTube
Maxim
Tell me one question
where is the question ?
Rahat
In django MEDIA _URL media folder path pass private YouTube channel
Maxim
In django MEDIA _URL media folder path pass private YouTube channel
better already, but there are still a lot of missing words i don't think that's possible, if i understand correctly
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
How to return all data in for loop using Return Response API
don't use return in loops collect data, then return
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
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
SomeBody
ok, thx
Sh
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
take a forloop and then init a list first. loop and keep appending to list and then return
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
Mirco
hello Who can suggest a good tutorial how to write unittests for CBV ? can't find a good explanation
Nothing special, it doesn't differ from FBVs You just have to call the URL via reverse and check response