Rohan
We have worked good enough to make those incidents less and less
Henry Joshua
Rohan
Tukhtamurod
Rohan
Rohan
So data is still retained even if service was not able to ingest it
Rohan
They’ve made it quite clear how to expose your methods as API. This is django group
Rohan
Read the title, at least.
Rohan
Tukhtamurod
but if the consuming service gets down, it can still consume it once it starts to function again
Rohan
If your kafka fails too often, you shoudl get better platform engineers or even get managed kafka as a service
Rohan
Henry Joshua
2
Whats your stack and what technology do you use (every bit matters)
Rohan
Rohan
This doesn’t belong in django group now
Tukhtamurod
Henry Joshua
This doesn’t belong in django group now
Hey man easy am just trying to get to know the dude am quite impressed with the way both of you were conversing just wanted to know how gud he his but can he still at least tell me what stack he uses besides both of you were conversing I felt left out 🤣
Rohan
Rohan
!ot
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Henry Joshua
It's ok
Henry Joshua
Mo
Hi , if we should use a variable per request but for time limitation it is better to assign it for one time (variable is a loaded model) not in every request, what is the best method for doing this? (something such as global variable)
Rohan
Rohan
A global variable is never a good idea
Rohan
Rohan
You can make a mixin and add it in views you want to access that model.
Rohan
Or you can make it happen in middleware
Василий
Rohan
But seriously, why is it like this, can you explain it?
Mo
Or you can make it happen in middleware
the variable is a loaded model. i mean the model is loaded one time and we use it many times (per request). in this case is it ok with your solution approach?
Rohan
Rudra
What is the difference between Flask and django?
Rohan
That is like an overhead every time you make a request
Rohan
Василий
Rohan
Rohan
So you can exclude classes where you don’t absolutely need it
Rohan
Василий
Rohan
Rohan
But global variables are not cool
Rohan
You work with a team and imagine they perform some mutation on your model variable
Rohan
That’ll be extremely horrific
Василий
Rohan
Rohan
At least not a model instance
Rohan
Which can be easily mutated
Rohan
Rohan
Or even better
Rohan
Create a method get_model_object():
Rohan
That you can import in your view and use
Rohan
Ofc you’ll have to give it a better name so it’s understandable
Mo
Ok! Thanks.
Anonymous
I have to select multiple checkbox and when I click submit button, i need to send all checked values from template to view.... Is that possible?
VISHNU
How to use while loop in django template
Anonymous
is it ok to use django-allauth with rest framework?
Anonymous
any authorization books/guides in rest framework?
Anonymous
I want to have sign up and login
Almaz
I'm not sure if you need it. But if you need it, i can send the link
Anonymous
for now I just want to have backend for signup - I will send post request with postman and if username or password aren't correct(too easy, too common) it will say me it
Anonymous
Ranjan
Any one known.how to.install django.to Android
The
Anonymous
Hello friends. I want to create a comment submission form in my Django blog project, but the comments are not stored in the database.
Anonymous
Does anyone know why?
Almaz
Anonymous
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
Hi
how to limit the number of character in below tag? I want to be maximum 50 char
<p>{{ articles.content }}</p>
Sivaji
Hii, is there any one having Django web develop real-time project ?
Anshu
Use template tag {{articles.content|truncatechars:50}}