Rohan Ekke
psycopg2.OperationalError: could not translate host name "db" to address: Temporary failure in name resolution
Can someone help me
Ali
Hi everyone
I'm working on project that...
Step 1. I have an script that generates many simulation data and send to server.
Step 2. The server get data and update ui realtime.
I'm using django channels and drf.
My question is In which step I should use api and and in which websocket?
Step 1 or 2???
Doragonsureiyā
Ali
Muflone
Rohan Ekke
Muflone
solution?
Pass the correct server running postgres
Rohan Ekke
Where can i change
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': 'db',
'PORT': 5432,
}
}
Muflone
Rohan Ekke
but what should i put insted 'db'
Muflone
Rohan Ekke
yes
Muflone
Rohan Ekke
i nstalled where the manage.py file is
Muflone
I bet you haven't installed it really
Rohan Ekke
pip install psycopg2-binary right? i installed
Charly
Charly
that's the library for postgres, you need an actual postgres server
Deidara
Hey, what's the best way to encrypt a model field in django. I don't really have preferences, as long as its secure and not a hassle to implement. Searched on Google and found django-cryptography, overwriting the setter and getter functions with the field as a @property, and one other implementation using a custom model field class. Which do you think is best/ any other opinions?
DeathLikeSilence
hey everyone,
How can I have a PDF output? I have a project for which I want to receive the received information as a text and a PDF file.
Is it possible in Django?
Mirco
Danish
Danish
So make a form and after submitting create a task and redirect user to a new page.. After redirecting make use of the task id to check if task is completed or not if completed then display the download option else keep the loader visible
Danish
Danish
This*
clouded
Danish
Danish
So making user wait or allowing him to do other stuff on web is totally depends how you want it to be
Михайло
Ah, I understood! Thank you very much!🙂
Danish
No worries😊
Basith
Basith
/\/\ @ # |) !
hi friends i have problem
/\/\ @ # |) !
' set' object is not reversible
what is this error??
Maxim
/\/\ @ # |) !
Maxim
محمد عبدالله يوسف
how bluid cart drf
Charly
how bluid cart drf
Please do a proper question explaining in a detailed way what you need help for
Newton
Charly
Bilal
I have used git clone to clone a repository from GitHub. Now i have made some changes to that same repository, I want to clone it again, but Python anywhere has saved the earlier cloned repository and not allowing me to clone the updated one. Is there a way to undo/delete the earlier clone and copy the updated repository?
Doragonsureiyā
lili
hi
i have uploaded my django project on a host and befor that i have made debug mode off,
now when my app saves a file(taken from user) in a folder, it cant show that file.
but when i switch to debuge mode, it gets fixed
what is the problem?
Gaston
but what should i put insted 'db'
You have declaraded on djang HOST 'db' wich is a dns name instead of IP, this is very basic problem and not very related to django. Change in database settings of django 'db' for '127.0.0.1' also you have to configure postgre hba to allow connection
Gaston
Psycopg2 is working fine, is Just telling you something like unable to find database host called db
Muflone
Raj
WHAT IS THIS ERROR
Raj
NO
Raj
ALREADY INSTALLED SUCCESFULLY
Raj
ALL PERFECT
Doragonsureiyā
WHAT IS THIS ERROR
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://hastebin.com, https://nekobin.com, https://dpaste.org (or your favorite one)
Raj
OK
clouded
OK
It's not okay if it looks like you're screaming at everyone.
clouded
Please fix it.
.
WHAT IS THIS ERROR
That register instance with the provided id does not exist in the database. Verify what value was assigned to variable ‘user2’, and verify that it exists in the database.
HBS
I have authenticated in django and am developing frontend in react js is compulsory to authentication or not
Peaceful
I i installed django , but i don't know what command to used to get url
Muflone
Arslan
Heyy i need some guidance for django i have intermediate knowledge of django and still learning it by making projects
Charly
Arslan
DJango
Charly
DJango
Bot for what specifically? If you already habe some intermediate knowledge you just need to rpactice projects
Arslan
Like
Charly
Siva
Hello community,
I am currently looking to learn how to create a new project with Django, focusing on multi-tenancy in the database. If anyone has insights or knowledge on this topic, I would greatly appreciate your guidance. Thank you!
Rakshit
Hello community
I am create one project Resume bilder can you suggested to how project host in best webhost
Mohit
Hello anyone can help me how to implement translation in django