Pouya
try postgres
is it better than mysql?
Yuvraj
is it better than mysql?
idk about mysql but postgres and python really go with each other in a perfect way, more like postgres❤️python
Hamidreza
A request comes to a page How do I tell Django Channel to send updates to that page every ten seconds? Should I use trading? How is that ?
Mohammad
Hi How can I use my Django user model to register with on social auth? not worked SOCIAL_AUTH_USER_MODEL?
Commodity
I am unable to check logs in azure like I was able to do in heroku.
Anonymous
Hey guys can I perform server side rendering with django and react?
Hamidreza
i want to update template after change somethings in database with django channels how can after get update from database i send updates to template ? i mean send message to template with channels and change values ./
Vishal
@translearnbot hi there
Mohammad
use allauth
I have installed version 2 of this program on Django version 3, but I have encountered a problem that after authentication with Google, user information is stored in a separate table of this program and no information is added to the user database table.
Tony
You add a role field And asign the student or teacher or else to users
I did this. I made two models, one project, other user. In user, there are two types, student and teacher. How to
Gokula
Anyone connected django with MSSQL?"
Anonymous
How to make a real time one to one chat system in django like Uber driver sometimes has chat costumer?? Can someone help me?
Anonymous
With*
Harsh
I am creating mobile recharge app and want a recharge provider api is there any mobile recharge api I know some of this but they are providing very low margin Like 0.3% it's very low Any one can tell higher margin provider
Meghna
Hey guys, I’m making models in apps and stucked, I want to know how the foreign key determines which field is to be bought in another model? Can I bring the field of my choice
Meghna
I am saying that if my model A contains 5 fields a,b,c,d,e and I have to bring c of A into B, how to do it? I’m getting only first field of it
Sheshadri
I am saying that if my model A contains 5 fields a,b,c,d,e and I have to bring c of A into B, how to do it? I’m getting only first field of it
Foreign key always points to the object of the model, if you need the fields on the model you need to 1. Load the foreign key object and access the fields 2. use query(values or values_list) and access via foreign key field name( ex: Model.objects.all().values(foriegn_key_fieldname__field_name_in_model))
Shoaib
Hlo
Shoaib
Best frontend framework??
Og'abek
Vuejs for me
Sheshadri
sravan
When I run a function in Django shell which has a celery task . function get stuck in the execution. Any one know why it happens?
Harsh
Hello I have model of user_data Inside this model class I have name email ps etc... I want to send promotional email to all of this user I want to send them mail using django admin Basicallly I want that if I add data to one class I want that one of my function should also run with this
Harsh
Can add my function or functionality with django admin My own custom code
Omkar
How can i add adblocker dectector to my website which is programmed in django
Harsh
Instead of django admin, you could just make "send_email" a task, and use celery
I know how to send mail But suppose I have two class "user_data" and "user_count" So if a new data inserted in first class then automatically the second class data update =1 or can do another functionality
enansi
I know how to send mail But suppose I have two class "user_data" and "user_count" So if a new data inserted in first class then automatically the second class data update =1 or can do another functionality
TLDR: Use a post_save signal: https://docs.djangoproject.com/en/3.1/topics/signals/ That seems to have nothing to do with sending email (which I believe was your original query). You can use a post_save signal on user_data Model, that will update user_count table. Though the real question is: why are you storing the row count of another table? is User.objects.count() is too slow? Rather than a DB table why not keep counts stored in cache or redis?
Anonymous
many websites provide already created Chat you can use with the help of api
Can you guide with some of that website that I only get idea about, because there is a lot and I myself know about channel
Anonymous
But I want to create that one to one
Anonymous
Not a channel that many partiipate
Unknown
What should be used nowadays? SCSS,SASS/less/Stylus.
Unknown
What should be used nowadays? SCSS,SASS/less/Stylus.
I am new to these things and struggling to decide what should be learned.
Anonymous
Hi
enansi
No as @shared_task decorater.
Possibly you have not started your celery broker, with something like celery -A appname.appname worker
Shreehari
When we use request.user , does it make a query to the database ?
Mirco
When we use request.user , does it make a query to the database ?
I don't remember the implementation of the middleware but only one time and then it should be cached
Mirco
When we use request.user , does it make a query to the database ?
I can confirm, it will be set and then cached
Артур
Migrations need to do , only when i make changes in models.py?
Артур
yeah
Thanks 👍
Mirco
Too much time, buy a book like Two Scoops of Django
Shreehari
is there any other way to get user id of the requesting user or even optimise it? Because when i check django debug toolbar it is querying
Mirco
Use request.user.id
Shreehari
Use request.user.id
Yup using this now.
Mirco
Yup using this now.
And keep using it
Shreehari
👍
Arezoo
Hi.i used multiselectfield in model django model.how can i use this field in patch method drf
Mikhail
hi . how get value from foreign key django class Order(models.Model): name_product = models.ForeignKey(Product, null=True, blank=True, on_delete=models.DO_NOTHING) product_price = self.name_product.price discount = models.FloatField(default=None, null=False, blank=False)
Mikhail
?
Loki
Any resources for learning Django Rest framework
Loki
?
Anonymous
Any resources for learning Django Rest framework
https://www.django-rest-framework.org/
Loki
https://www.django-rest-framework.org/
Upto what i need to learn Django
Anonymous
?
Najim patel
What is meaning for this "GET / HTTP/1.1" 200 8652
Najim patel
I have an error