Rohan
but if the synchronization part gets stucked, then everything is down😅
We have kafka for that, we push failed events into more resilient partitions and help manually in ingestion
Rohan
We have worked good enough to make those incidents less and less
Tukhtamurod
We have this automated pipeline to spawn new instances, if they keep failing too, we roll back to previous tag
we do the same, if problem occurs with syncronization then, rollback that changes, so that there will be no unsynchronized data, but for the cost of that data
Rohan
So data is still retained even if service was not able to ingest it
Shriyash
I didn't quite get you
Mp4 video to text converter
Rohan
Mp4 video to text converter
Whatever the heck that is, read flask documentation
Rohan
They’ve made it quite clear how to expose your methods as API. This is django group
Rohan
Read the title, at least.
Tukhtamurod
We don’t push data directly to service, we keep them in kafka pipeline
we use kafka too, i meant the pushed data waits in queue to be consumed, but if that kafka goes down, then rollback changes in that service
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
Henry Joshua
2
Whats your stack and what technology do you use (every bit matters)
Rohan
This doesn’t belong in django group now
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
!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
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
A global variable is never a good idea
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?
Rudra
What is the difference between Flask and django?
Rohan
That is like an overhead every time you make a request
Rohan
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?
IMO, you should make a mixin and inherit it in the classes you want to get a variable that is instance of your model
Rohan
So you can exclude classes where you don’t absolutely need it
Василий
What?
Sorry it’s for MO
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
At least not a model instance
Rohan
Which can be easily mutated
Василий
Always try not to use a global variable
Thanks for explaining, I didn’t know it
Mo
So you can exclude classes where you don’t absolutely need it
thanks a lot for your response and guide. So you think from time consuming aspect this is the best way? or is there a better solution? since i have not ever used it before and new to the problem i ask this?
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?
Almaz
any authorization books/guides in rest framework?
Do you want to make login and registration form?
Anonymous
I want to have sign up and login
Almaz
I want to have sign up and login
I saw one video on YouTube about making registration and login form
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
Ranjan
Any one known.how to.install django.to Android
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
Hello friends. I want to create a comment submission form in my Django blog project, but the comments are not stored in the database.
I'm not sure, but I think because you didn't registered your models in your ad min file
ꜱᴇʏᴇᴅ ʜᴀꜱᴀɴ
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}}