Sadra
those who used poetry, can you tell me why I should use poetry?????
Every single technology built for a reason. They are all here to stay away from the problems and issues.
Abdul Shakoor
Sadra
can anyone tell me how to display a url field in html template
It's being showed by default. U can change it in forms.py BTW.
Sadra
yeah I know but I meant what features does poetry provide??
Check out the homepage. You'll find enough for sure.
Siddhartha Inturu
Do anyone have Vehicle Rental System project ??
Ali Vs
Hi Who know about signals?
Rup
I want two join tables. Can anyone refer me a site which we can refer.
Вячеслав
Вячеслав
is that what you want?
Rup
Sorry. But I want to join table In django rest framework and I am using postgresql
Rup
I am using queryset and viewset in views.
Вячеслав
can you provide more context? there are many ways to do that
Вячеслав
what exactly do you want?
Aman
Vc
??
shadow
Guys when i render a listview from another view , the queryset returns empty, how do i resolve it?
Abdug'ofur
Hi guys , help me what is it web socket
Abdug'ofur
Pls
Abdug'ofur
🤔🤔🤔🤔🤔
Вячеслав
Hi guys , help me what is it web socket
let me google it for you) https://realpython.com/python-sockets/
Oleh
Hi guys, can you advise the literature for studying tests django?
Poojitha
do anyone know how to resolve smtp error while sending mail
Ganesh
Are you using gmail?
Mirco
🤔
there is an entire topic about tests
Cristus
Does anyone have experience with django-parler for model translation? or can suggest any good tutorial/documentation for the same?
Sanjarbek
#help
Sanjarbek
#savol #help AssertionError at /category-list1/ Cannot apply DjangoModelPermissionsOrAnonReadOnly on a view that does not set .queryset or have a .get_queryset() method.
Leonel
please i need help about django.core.mail. how can send mail with link attachment using django
Leonel
this is my code send_mail( 'Welcome to !', 'Thanks to join the Chat Group ChristWoo', attach('join the group by clicking on the link',), EMAIL_HOST_USER, [k], fail_silently=False, )
Leonel
i have a problem to get and add a link of my url group
Leonel
s
yes
Avi
I am getting lots of problems after I deploy my on heroku Suggest a good tutorial video for heroku or suggest a better deployment service
Anonymous
Hi all, I want to get the title of a foreign key
Anonymous
I used item.cities_id.title
Anonymous
But it is not working
Anonymous
show your models
class City(models.Model): title = models.CharField(max_length=128) is_active = models.BooleanField(default=True, blank=True) class District(models.Model): cities = models.ForeignKey(City, on_delete=models.CASCADE) title = models.CharField(max_length=128) class RegistrationView(View): def get(self, request): food_category = FoodCategory.objects.all() city = City.objects.all() districts = District.objects.all() return render(request, 'account/register.html')
Tech
Hi all , can any one please tell me how to convert django to exe
Mirco
I used item.cities_id.title
item.cities_id returns the ID not the City instance
Anonymous
item.cities_id returns the ID not the City instance
I want to return the title of the city that's why
Anonymous
Use cities__title u will get
like item.cities__title ?
Mirco
I want to return the title of the city that's why
item.cities.title if item is District instance
Mirco
Use cities__title u will get
not outside a query inside a filter or get, yes
Yuvraj
does this same community have a discord server?
Anonymous
item.cities.title if item is District instance
it works , thanks a lot . Will come back again if i got another issues
Mirco
No ,only cities__title
Outside a query you cannot use the lookup expression.
Doragonsureiyā
Ok thank you
You're welcome! 😊
^o^
{'serialized_data': '[{"model": "tbl..", "pk": "69c...", "fields": {"updated_user": "admin"}}]'} This is a data in my table column. How to take the value of model from this
Avi
I am getting lots of problems after I deploy my on heroku Suggest a good tutorial video for heroku or suggest a better deployment service
SuperN00b
Key error model
Something['serialized_data'][0]['model']
Anonymous
Hello, can anyone please tell me how can I listen to Django Rest changes in my front end because I use new WebSocket("wss://ocalhost:8000") but it gives me onclose directly. I don't know how to set it up. I think there is some set ups I should do but after googling I could not find anything
Idk
When doing gunicorn wsgi, i am getting the following ValueError - Missing staticfiles manifest entry for 'css/main.scss'.
N.D
can anyone help with something
mario
can anyone help with something
just ask the question
N.D
just ask the question
can i pm u if u are okay with that?
mario
can i pm u if u are okay with that?
sure but i don’t use django, i meant just ask here and someone will help
Turtle_In_Hurry
{ "id": obj.id, "date": obj.scheduled_date, "name": obj.display_name, "mail_attrs": { "header_image": obj.header_image, "body_image": obj.body_image, "body_text": obj.body_text, "subject": obj.subject, } } i want to serializer object this way by serializer (see some field are nested in mail_attrs of same object)
N.D
i just created a new project and i m getting the type error while i try to run this command python manage.py startapp customer the error states that TypeError: argument of type 'WindowsPath' is not iterable
Utsav
page session expired by inactive user in django ?how ? Suppose user want to use this website after 10 min... So how can I code in django?? Example like in bank website user are automatically logout after 10 min that type of I need.. Please please anybody know so please tell me.. My one friend tell me that django security is provided that type of but he didn't know properly.. if anybody know then plz..
Zey
when i am removing offer field and making migrations then i am getting this error