Re: How can i Open binary files with Django?

2023-02-13 Thread atleta
You don't open files with django. You open files with the built-in function 'open'. Which allows you to specify text or binary mode. See the documentation: https://docs.python.org/3.11/library/functions.html#open On Monday, February 13, 2023 at 9:56:18 PM UTC+1 Lucas Matos wrote: > I tested so

Re: Admin foreign key widgets Dont quote Keys that the unicode of the Primary key (value=number) is a special character.

2023-02-13 Thread Dev Femi Badmus
https://chat.whatsapp.com/IVvrrF9Wq7OHWk5x4XNk9K On Wed, Feb 8, 2023 at 3:40 PM Oluwayemisi Ismail < ismailoluwayem...@gmail.com> wrote: > Hello everyone, > > I'm Working on a ticket, "Admin Foreign Key widgets don't quote keys". > When I reproduce the bug, I realized that the widgets quote

How can i Open binary files with Django?

2023-02-13 Thread Lucas Matos
I tested so many ways to do it, however a only found how to open text files. Someone can help me? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

BlockChain and Crypto Group

2023-02-13 Thread Satyajit Barik
Guys join our Crypto WhatsApp group. It's free for everyone. Daily 2-3 profitable trade calls. We give the best analysis of the market price prediction. Want to see you all as a profitable trader. Just join and celebrate拾 https://chat.whatsapp.com/IqQwOGrxBJgAIIkuC5HIBu -- You received this

Re: django model method

2023-02-13 Thread Jason
there's alot to not like about the implementation here. You're effectively hiding queries and db hits with those methods, since the naming does not give any indication that its a db hit. So its really easy to forget that, and then after a while, you're wondering why your project is so slow

Facing error while working on my project(google oauth2.0 logins)

2023-02-13 Thread bloomlync monisha
Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Users\bloom\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File

Re: TabularInlineAdmin queries waaaaaayyyyyy too much.

2023-02-13 Thread Chetan Ganji
Try them and see if it helps! https://betterprogramming.pub/django-select-related-and-prefetch-related-f23043fd635d Regards, Chetan Ganji +91-900-483-4183 ganji.che...@gmail.com http://ryucoder.in On Thu, Feb 2, 2023 at 8:53 PM Mark Jones wrote: > I have an admin with 1 row in the tabular