Mirco
Shubham
Hello do anyone know how to upgrade django channel
Shubham
?
Shubham
from daphne.server import Server, build_endpoint_description_strings
ImportError: cannot import name 'build_endpoint_description_strings'
Shubham
I am getting this
Shubham
https://github.com/django/channels/issues/864
Shubham
this what I refered
Ильяс
How can i add total sum of my paycheck to a clients debt
Ильяс
two different models
Ильяс
and two different apps
Ильяс
No
Ильяс
Thanks. i've found out what to do))
Ghorz
Yash
Hi, please suggest a good library for compressing Django upload files of any format
Yatin
Is there a way where i can give a path to a function inside a class in CBV?
Yatin
cj
Is there a way where i can give a path to a function inside a class in CBV?
if you've notice, you call YourViewClass.as_view() so, as you can see, you're calling the function .as_view() of the CBV, so yes, technically you can, but you're gonna break things if you don't know what you're doing 🤷🏻♂️ but, if you're asking that, it means you don't, so the short answer is: "NO"
Yatin
dhelbegor
Hi guys, someone here use factory boy to populate fake data?, I mean, using factory boy as fixtures
Yatin
😂😂😂 ok dat was a good metaphor... So i will use an alternate way of creating a different function and using FBV
Alejandro
hello... How to change the color of the polygon dynamically in django-leaflet
Hari
How to write a ajax call for django forms (one field)...
Mr. Achiever
Has anyone tried using otp for Django admin?
I was able to add otp feature. But the models that should be visible in admin don't show if otp is enabled.
Almaz
Hello everyone! I've an issue. Django, postgres and nginx are in docker. DB data is lost on each restart containers. I set up the volumes. As I noticed this problem appeared, after nginx set up to project.
Ильяс
How to get all purchases of the client?
Ильяс
https://repl.it/repls/DarkgreenGreenyellowServers
Ibrahim
Has anyone done google authentication to get access token? I have done the gmail authentication but I don't know how to get the access token.
Ravid
Can I combine DirectAdmin with Django?
Ravid
or another panel?
Shubham
https://github.com/shubham1507/Food-app
Shubham
https://dpaste.de/gg3G
Shubham
can anyone take a look at this error
Shubham
?
Kapil
Can anyone tell me how to deal with 503 error ?
Bunty chhatri wala..
Shubham
Adonis
Yash
I have two models.
Students has name, class.
Parents has name, one-to-one relation with Student.
How do I access query set of students who's parent name= 'somename' ?
Andrey
Students.objects.filter(parents__name='somename')
CP
Андрей
Hi, I want to ExtractDay from annotated field
Андрей
.annotate(
expire_days=F('expiration_date') - now))\
.values( days=ExtractDay(F('expire_days'))
Андрей
But it doesn't work
Андрей
How I should do it?
Андрей
Annotation of expire_days works perfectly and add new field
Yash
So I was trying to get students query set from Parent's set
Andrey
Yash
Andrey
It should be name of Parent model in Student model. For example.
If related_name is 'parent' then it will work like
Students.objects.filter(parent__name='somename')
Yash
Andrey
It's 'student'
is 'student' the name of field in Parent or the related_name value of student field in Parent?
Mohsin
Guys, can we create a telegram channel or slack channel with a curriculum for be a either back-end dev or full stack guy
Mohsin
@admin
Kavin
Can anyone give me resources for learning Django in pdfs
Mirco
Evgeniy
Hi, i need to get request "/api/v1/gps/?speed_from=0&speed_to=13&altitude_from=0&altitude_to=13" with not required params, how can i make correct path on urls ???
Андрей
.annotate(expire_days=ExpressionWrapper(F('expiration_date') - now, output_field=DurationField()))\
.values(
'id',
days=ExtractDay('expire_days'),
titlte=F('number'),
date=F('expiration_date'),
)
That works, if you want to get day, year or another things from annotated timedelta
Master
Master
path('gps/') if this is a GET request, I guess. Try to be more specific. What are you want to achive?
Evgeniy
ok, i'll try
Evgeniy
thanks
Anonymous
I want to encrypt data to database after save and decrypt to the authenticated user due to privacy...I find django-encrypted-model-field but it's not properly configured..what can I do?
Master
Use any other crypto-apps for django or configure django-encrypted-model correctly.
Master
»> There is a Django management command generate_encryption_key provided
with the encrypted_model_fields library. Use this command to generate a new
encryption key to set as settings.FIELD_ENCRYPTION_KEY.
Anonymous
Anonymous
FIELD_ENCRYTION_KEY defined incorrectly: Fernet key must be 32 url-safe base64-encoded bytes.
Anonymous