Anonymous
hey people. I don't remember. In django there is filter which can help print out in template view for example 156 characters
for example i use function in model
def(self):
return self.description[:268]
Anonymous
but in template there is other option
Anonymous
post.desctption | and i don't remember
Kirill
How to make sure query.delete() won't delete related objects from other model with FK on_delete=CASCADE?
cj
Kirill
Alejandro
hello ... when uploading a file have you ever received this error: 'ascii' codec can't encode character '\xe9' in position 46: ordinal not in range(128)
Alejandro
???
V
I want to learn django rest framework, but i can't find any good resources on internet. Can someone please suggest some good drf resources... 😊
sravan
V
Anonymous
Which relationship I will will in django for one agent having many employees?
Anonymous
Ok
Shivam
Anonymous
?
Shivam
Rest framework or just django
Anonymous
{{request.user.myagent}} ?
Anonymous
myagent is the foreign key in employee model?
Aditya
Can someone plz tell me
How to achieve this in django??
"URL is valid for the active encrypted session for 60 seconds and after that the URL will be expired and will display URL is expired Message."
Piyush
Hello
Is there any method to use Django as backend for Android???
Please help
Toony
Hi, I ran into a problem. I have two models inherited from one, the first is public, and the second is created when editing the first, so moderation is organized. How can I copy an image from an additional model to the base, and delete the additional one? I am using django's ContentFile but it does not overwrite the image based
Mirco
Mirco
Lenin
Can anybody suggest me some good courses on low level programming like assembly (x86-64) and C?
Mirco
Doragonsureiyā
Lenin
Okay thanks
Mirco
Anonymous
⎊ GNU/Aryan ⎊
What is the best resource to learn about Django querysets ??
Mirco
Anonymous
Study.
Which part of rest framework study to do the above
Mirco
All
Anonymous
Omg
Mirco
Start with the tutorial
Anonymous
Ok
Mirco
And then you will able to write first endpoints in a while
⎊ GNU/Aryan ⎊
Velociraptor
Hi ... How to implement the child form in parent Detailview?
Roman
Hi guys , if anyone worked with rest framework , I am wondering If I have 2 method in serializer(update and create) when does update invoked ? When create except duplicate key or what ?
Ayomide
Ayomide
But a detailed example is in the docs
Mirco
David
guys I'm a little confused, let's see if you can explain, please. The issue is that I am trying to integrate channels to perform a real time chat but I do not know how to install redis, if by pip install in the virtual environment, or should I download redis and install it on the computer as such.
Aditya
Plz help
How I decativate url after 60 second in django
Thanks in advance😊
Mirco
Roman
Mirco
Mirco
No, it will use the update you set into the serializer to know what you wanna update
Mirco
Study better DRF docs and you will find all answers
Kirill
SomeQuerySet is a Queryset object, returned by sth like Model.objects.filter(pk__gt=10). How to find some element by condition IN SomeQuerySet. I've tried SomeQuerySet.get(...), but in makes another query to database instead of looking up in ready SomeQuerySet.
Shreehari
How can i add fields during runtime in django rest.
Problem: In User model there's a field for adding few preferences. By default it should be 3. if user wants, he should be able to add more preferences for the preferences field.
How should i approach this ?
Xavier
Shreehari
Luis
Dixit
I've so simple query, I'm new to django.
There a star I want to print for certain number of times.
<ul>
{% for i in range ( num ) %}
🌟
{% endfor %}
And I'm getting an error, such a noob question but please ♥️
Xavier
cj
Dixit
Thank you much for your replies but ... What do you don't write code in templates ?
Dixit
Is there another way ? 😳
cj
cj
Gigil
It's not secure to write logic in template I think
cj
build the list in the views, then show it on the template, yes you can make basic iterations on it too
Dixit
I'm writing functions in views.py and using render method I pass Template names
Dixit
Is it a wrong or inefficient way ? Or am I doing right ?
Dixit
Dixit
Thank you 💕
V
Anu good resources of django-rest-framework other than official documentation?
raven
V