Elijah
Good day to everyone, I need a little assistance.... I have a microservice application using keycloack for authentication all running in a docker environment, but when I try connecting to keycloak it says cannot resolve host "keycloak" but I can connect to other services without any problems
Mohd Hanafee
Hi guys, How do I send a datalist id value?. But list display with text information
Héctor
Django is the best framework for your project.
And Do you recommend me to use Django-shop or Oscar?
Sahil
Hi Everyone, I have been given a task to get list of books and corresponsing author name ( atleaset 5 entries ). # Create your models here. class Author(models.Model): Name= models.CharField(max_length=40) Email= models.EmailField() def str(self): return self.Name class Book(models.Model): Name = models.CharField(max_length=100) Author=models.ForeignKey(Author, on_delete=models.CASCADE) def str(self): return self.Name
Sahil
I can fetch the Book's author name by running: Book.objects.get(id=1).Author.Name
عَبٔدُ الٔحَكِيم
can i make API without any frameworks in python someone knows?
Sahil
But how to get all the books along with their Author names?
Doragonsureiyā
can i make API without any frameworks in python someone knows?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
𝙑𝙞𝙯 𝙋𝙖𝙡𝙖𝙨
But how to get all the books along with their Author names?
Book.objects.filter(Author.name = 'sth' )
Sahil
Book.objects.filter(Author.name = 'sth' )
Thanks, Is there any way I can get all the books along with their author names?
𝙑𝙞𝙯 𝙋𝙖𝙡𝙖𝙨
Thanks, Is there any way I can get all the books along with their author names?
hi =Book.objects.all() And a for loop is fine For obj in hi: Obj.author.name
Massoumeh
Hello everyone,I hope you're all well. I hane a problem about running the project. When I want to run my project, the error(No such file or directory) comes for me. Could you please help me to solve this error.
Massoumeh
U must activate the env, if u create one.
Do you mean (....\scripts\activate.bat)?
Dipanshu Vora
Can anyone help me... How to save all the logs of response and request in django admin panel
Massoumeh
What's ur OS?
That's windows
Pythonero
Can anyone help me... How to save all the logs of response and request in django admin panel
have u configurated the logs?: https://docs.djangoproject.com/en/4.1/topics/logging/
Pythonero
That's windows
https://stackoverflow.com/questions/55142774/how-to-activate-virtual-environment-in-django
Neetanshu
Anyone here worked with schedulers in django and know how to schecule sending emails yearly monthly weekly
NightE
What is the best way to store cart items for anonymous user?
$€
i got an a project in my college and i done it at this time but this issue is not solved
$€
Okk
$€
In my project the admin panel to do the admin tasks. But I need a admin module like the user module. The admin module want separate pages for catering works and events. Also the user need to update his profile
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Tура
I am sorry, I used these websites to post my code here, but it is not posting yet
Tура
what should I do
Maxim
what should I do
just follow prompts
Maxim
what should I do
at the end the button to copy the address or the address from the address bar
Tура
ok, just a question model.objects.filter() how can I serialize it, and return JSON
Tура
Yes, I did
Tура
But it is not returning any data
Tура
Also, model.objects.all()
Tура
use modelserializer?
Doesn't return any data
Matheo
Hello guys how do i reduce stock from stock model when order is made please help i have spent the entire day trying to
Matheo
To make work
javad
hey guys . i want to return auth user in queryset . what sould i do ? class EditProfileView(generics.UpdateAPIView): permission_classes = (IsAuthenticated,) serializer_class = EditProfileSerializer def get_queryset(self): return self.request.user
Юлиан🦉
anyone can tell me, in dj-rest-auth, how can I operate with response hat contains 'key' on authentication success? Or tell me , please, where I can get resources about this?
Nati
Can we develope big system with django?
Tanner
Can we develope big system with django?
Some of the very biggest use Django in some ways
Mahkam
Hi. Is it possible working with realtimechat in DRF?
Grace
How do i add an Object to a ManyToManyField with self, I have tried chat.contact.add(user) but wont work
Maul
Can we develope big system with django?
Can be adjusted to the cost you can afford
.
How can i use CSS in Login_view function
Adrian
Hi. Is it possible working with realtimechat in DRF?
Maybe this can help you https://github.com/NilCoalescing/djangochannelsrestframework
Adrian
How can i use CSS in Login_view function
You should override the login template https://stackoverflow.com/questions/55369645/how-to-customize-default-auth-login-form-in-django this is an example
Rag
When run 3 microservices using docker it throes this error
Rag
Anyone can help me
Rag
Is the server running on host localhosr[::1]
Rag
And accepting tcp
Rag
Ip connection on port 5432
Rag
Any one can help
Rag
?
Rag
??
Massoumeh
Hello everyone. I have a question that; why when I want type (max_length) for Charfield, just (max) comes for me.
Massoumeh
Max is built in python func
You mean I can't use it in class?
𝙑𝙞𝙯 𝙋𝙖𝙡𝙖𝙨
You mean I can't use it in class?
Max_lenght is an other thing and it depends on your text editor to suggest it to you or not(Django extension)
Abhie
Hey guys hoping u all doin grt, I'm new there in this grp I had a question related authentication, would you mind helping me?
Abhie
I want to generate random code as a password and show it to user the plain text not hasse text. However i want authentication to be done by using hash text i.e don't wanna save plain text in database
Abhie
that's exactly how django manages passwords
Nope, i can't get plain text of password from database