Shilpy
I want to remove email field from rest-auth login API. How can I do so?
Zafarbek
I am gonna use locations in my project. which one is better GeoDjango's or long/lat
Zafarbek
no, I mean i don't need a specific point on the map
Zafarbek
I need whole city
Charly
I need whole city
what does it means?
Saurav
I want to remove email field from rest-auth login API. How can I do so?
Are u using any library for Rest Authentication?
Zafarbek
what does it means?
no never mind, I changed my opinion
Azizbek Xushnazarov
Product(Model) name category -> FK (Category) -> related_name='products' Category(Model) name parent -> FK(Category) -> related_name='subcategories' I have a product and it has a subcategory. I need to get all products that have the same parent with the product's subcategory. How can I do it? here is my low performance code: def products_in_mate_categories(product): products = Product.objects.none() mate_cats = Category.objects.filter(parent=product.category.parent) for cat in mate_cats: for each in cat.products.all(): products |= Product.objects.filter(id=each.id) return products
Zafarbek
it was a mistake
Saurav
Using related_name
Saurav
Like model_obj.related_name
OneRepublic
Hey guys, I've created a project in Django. It's an informational gathering web application that helps to gather information about the target website. You can read more about it on Github. Any feedback is appreciated. :) https://github.com/iamnihal/warf
Saurav
You can create model_obj by using Category model Applying filter/get for "Sub Category"
Saurav
Reverse lookup help you to find the parent of sub category.
Saurav
Now you can filter all the products on the basis Sub Category' parent.
Sai
Thanka dev! I surely get into this
How to deploy on server. #apache #asgi
Oleg
Guys, could somebody clarify this case? https://stackoverflow.com/questions/69276071/what-is-best-practice-to-remove-values-in-m2m-relation-in-drf
Anonymous
A site has been created, for example, an online store. Can I connect an order from an online store via a telegram bot?
игорь/igor
Guys, could somebody clarify this case? https://stackoverflow.com/questions/69276071/what-is-best-practice-to-remove-values-in-m2m-relation-in-drf
It does not matter, depending only maybe what you expect from client(Frontend I guess) - list of m2m relations that are left - use set, or list of what is actually deleted - use remove.
Sina
How can I save emoji to mysql
Anton
https://stackoverflow.com/questions/39463134/how-to-store-emoji-character-in-mysql-database
Anton
Guys, pls help. I developing an store application. And now i must create panel for orders management. That panel must contain all fields without edit mode except order status. So,,, To do that i must create new application or it possible to edit django admin panel to do that
Maxim
How can I save emoji to mysql
as well as any other Unicode characters, if it is an Unicode emoji
Fredy
Hello group, I am testing my API project, I am using the pytest-mock and django-mock-queies packages. I don't know how I can send you the user instance that takes the attribute created_by. Help please https://hastebin.com/rolelocaqu.rb
Zerat
Hello folks, I'm currently working on a django project with the use of django import_export. I'm trying to add a selector to link all rows to a category (account) when importing, however the models are added without the selection of the category (account). Does anyone know how to implement it?
ARBAAB
how to sum salary from a table with django orm not with aggregate function is there any other way?
foxyy999
can anyone guide me , how can i deploy my dockerize django application on heroku, i just follow the tutorial and got stuck now
Sanjarbek
https://dpaste.org/jJcg
Doragonsureiyā
https://dpaste.org/jJcg
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Anonymous
Hi I have a model (mongodb) which has is of type arrayfield and its of embedded array. I can write data to db successfully. But when I try to access serialised.data it throws error " typeerror: class nonetype, cannot be serialized"
Anonymous
Can share model n serializer
Muhammed
Ckeditor items popup working in back not popuping in front? Why?
Anonymous
More details I have added here
Anonymous
https://github.com/nesdis/djongo/issues/574
Anton
Which kind of app that ?
Mmm.. What kinds of app exists?
Anton
I dont understend😳
Samuel
Anyone have handled Timeout error in Django before?
Samuel
I really need suggestions of how to handle this exception. The import statement would be highly appreciated
H i r A
Hi guys✋ I am Iranian and I had some questions about the program I am making. Thank you for sending me a message
Doragonsureiyā
Please guys, this is an urgent project to be deliver soon
Is it urgent? You shouldn't be here, wasting time and poking strangers and waiting for them to do your job for you. Search on Google/DuckDuckGo, do the research, and solve your problem yourself, nobody here will drop what they're doing to do your job, just because "it's urgent!". Have a nice day! 😉
Anonymous
How to ban an IP address in Django? I want to implement some Brute force protection on my site
Anonymous
middlewares
Any particular Middleware for it?
Maxim
Any particular Middleware for it?
implied that you can find or write, i think
Брат
Can anyone help me?😔
Just ask what the problem
Eyakub
Can anyone help me?😔
Ask your questions directly people will help whoever can.
Anonymous
Django rest framework best tutorial
Asadbek
Anonymous
Hi I have an issue regarding serialization. Can anyone help
Anonymous
In its documentation
Any good YouTube channel
Saurav
Instead of channel go for topics
Anonymous
Yes please brief.
Saurav i have an embedded array field. When I do serialization and save, the data is saved in mongo db. But when do return serialized.data i get error
Saurav
Can you share that data please?
Anonymous
What should I share?
Anonymous
I have put all the data here https://github.com/nesdis/djongo/issues/574
K.
Is it possible to use the recent Python 3.10 with Django 2.2.X?
Saurav
You are getting error because of empty entry in your database.
Saurav
Like you can't deserialize
Saurav
String=""
Anonymous
Ok will try..
Брат
how do I send API just like that {'word': 'hello'}
Брат
without models