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
Mirco
what's this again
Just another package to do the same stuff
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
Cyber
Read about "cron" first
can you guys tell me where to start. what should i know before starting this
Ruslan
https://testdriven.io/blog/django-custom-user-model/
Ruslan
Hi, I am a beginner. I can't understand what is META class for? Can anybody explain it shortly? please
If u beginner, don't give a fk for now, it's too hard to explain shortly this topic. But this is only my opinion, Meta classes is good to develop a library, else u just need to know that some attributes should be defined at Meta class
Ruslan
Thank you! Is there any resources that you would suggest
For what? If u don't know how to use meta classes in Django, just follow the rules from Django documentation
Cyber
roadmap.sh
i can see there is a lot of options but cannot see the django one . ? and about that part
Ruslan
i can see there is a lot of options but cannot see the django one . ? and about that part
Django documentation has a django-content, u were asking too general question, if u wanna learn Django - go read a docs.
Владислав
can you guys tell me where to start. what should i know before starting this
https://docs.celeryq.dev/en/stable/getting-started/introduction.html
Владислав
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?
Admin
a wallet app? a crypto wallet app?
Its coins wallet I’m using this for refer and earn wallet. Like in app currency.
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
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?
jūdê
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.
First thing you need to do is set a validator on that field The validator should be a MinValueValidator that doesn’t allow the balance to go less than 0 The second thing you want to do is atomicity and locking So when an event is triggered(the button is clicked), the select_update fields for that model instance is locked to only that change that is going on And when another window for example wants to make that event happen, it will wait till the first is done And when it’s done The code that checks for insufficient should throw an error before the change even hits the database
Bipin
Which book is best for django4
Dlight
hey , fam! Is there any command to see the SupserUser username in cmd?
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
Mirco
who wrote this bot ?, honestly , this is not a proper language to talk to someone
The language is fine, and if you read group rules you can avoid bad answers from anyone
Dlight
The language is fine, and if you read group rules you can avoid bad answers from anyone
The question is as clear as possible, "What are you talking about" = > Please be more specific , Thanks
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
ㅤ
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
jūdê
No i was using session authn.
Switch to a token based authentication
Subham
Alright
Subham
Thank you
Anubhav
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
If u r creating api then u can use postman to test your api and in your header set Authorization and token then it will help u to access protected url
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??
Subham
Okay okay.....so you are working on which project??
i am creating a music listieng platform i know it is a complex project for a begginer like myself but i just strated it and i am learing everthing reqired to build it along the way
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
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/
A
Thanks