Cyber
hey guys is there any proper way to learn celery and redis in django
Владислав
You may send email to console with django, then create celery task to do this with delay (30 sec for example) this is what celery does, you can find info in celery docs
Install redis and cache your view as mentioned in documentation
That enough for start, you can find some videos in youtube. This is not so hard as it looks like. Just a few lines of code
Cyber
ok
Cyber
but my question is where can we use this
Cyber
only for email sending ??.
Cyber
why it's so hyped up
Cyber
is this a microservice stuff
Frank
Hi, I am a beginner. I can't understand what is META class for? Can anybody explain it shortly? please
Mirco
why it's so hyped up
It's not about hype, it's about needs
You can use Django Q instead of Celery for example
Cyber
i am super confused
Cyber
Mirco
i am super confused
It's not complicated, you need background tasks, you need scheduled tasks ?
Then use Celery or similar like Django Q
That's it
Cyber
o i see
Ruslan
i am super confused
Don't be confused
U need run some periodic tasks, u need a tool for it, celery can be ur tool
But there is not only periodic tasks, read about it bro
Ruslan
o i see
Read about "cron" first
Ruslan
https://testdriven.io/blog/django-custom-user-model/
Ruslan
Frank
Cyber
roadmap.sh
i can see there is a lot of options but cannot see the django one . ? and about that part
Ruslan
Владислав
Владислав
Imagine your user wants to generate big report, your app need a 30 sec - 1 minute for this job. While your job is in process your user will see white screen and that's not good. Instead of this you can show the message "your job in process, you will receive an email soon" and your user will know that all ok and he doesn't need to wait.
This is a small example
Владислав
And celery will do this job in background
e00049
How to create custom groups in django programmatically?
Yakov
https://docs.djangoproject.com/en/4.2/topics/auth/default/
I think this will help you
Admin
I’m creating wallet app using django.
I’m facing issue I’m using multiple windows and trying to send my remaining balance that is 10 from two browser windows.
Even after condition that insufficient balance if less than or equal to 0.
My balance go negative. Its getting -10 it only happen when i click send button at the same time from both browser tabs.
Admin
Any fix for this issue. 😞 Users are misusing this?
Balde
hello, i want to make a website for stock management with django. please what do I have to learn especially on the front end part?
Naggafin
Zerat
Daniel
Hello one question, this query is correct o can be done better?
python
slug = self.kwargs['slug']
queryset = {'topics': Topic.objects.filter(category=Category.objects.get(slug=slug)),
Daniel
I can send the complete view and the model if need it
Anonymous
How can I create a link in about page after I have inherited base but the link in not common so I only want it in my about page at the header pls what can I do
Daniel
Anonymous
Oxytocin
Hello
I want to program a game which each user has some tools for attacking and some tools for defending. And at a time a user just can fight with one user. This lasts 4 minuets then by calculating scores using their tools and other things, the winner will be found. How can I code it in django and drf?
Admin
Bipin
Which book is best for django4
Dlight
hey , fam! Is there any command to see the SupserUser username in cmd?
Doragonsureiyā
Dlight
Doragonsureiyā
what ?
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Dlight
who wrote this bot ?, honestly , this is not a proper language to talk to someone
Dilara
Hello. I need help. When combining React Vite and Django files, images in the publick folder in React are not visible on the page. How can I solve this?
Subham
hey can anyone help me with {"detail":"Authentication credentials were not provided."}
i am unable to use fetch.get
using django for backend and react for frontend
Devanand
ㅤ
can anyone suggest me any git template (Django) that i can refer for google verification to create an account,
i mean that, to create an account user can simply click on google option, so he/she can choose google account then account is created, — like template/project
i have only gone through manual account creation section, it will be so help-full if anyone suggest me good template/live project(git).
thanks in advance
Subham
Anubhav
Subham
Alright
Subham
Thank you
Anubhav
Subham
Yes i am creating an api
Anubhav
You have set permision_classes = isauthenicated??
Anubhav
*isAuthenticated
Subham
permission_classes = (permissions.IsAuthenticated,)
Anubhav
Yes
Anubhav
So if you are using token based then you have to send your token with the url to access the url
Subham
i was not using token based
but now i am changing my code accordingly
Anubhav
Okay okay.....so you are working on which project??
Maxim
Katerina
Anubhav
this is not a small talk group
Bro according to me groups are made for collaboration so may be I can help him to complete his project or may be he can help me at some point
Andrew
Hi is there any way to integrate django with amazon pay I really appreciate any help
Charly
A
I need your help, I am developing a system for an acupuncture clinic at the university. I have a therapy module, where there must be an image of the human body, and the user must mark points, with clicks on the areas where he will later put the needles, at the end he must save it as an image and print it. I don't know how to implement this module, does anyone know how? It is similar to the function that is on the following page: https://saludymedicinachina.com/
Charly
A
Thanks
ㅤ