GSoC Advice Needed

2021-11-17 Thread Divya Soni
Dear Guardians of the Django Universe, My name is Divya Soni, and I'm second year CSE Undergrad from India. I want to participate in GSoC 2021, and have been looking at The Django Foundation as one of my possible options. I need your advice about my particular situation. I'm well versed in Obj

Re: Django deployments

2021-11-17 Thread Ing.Daniel Bojorge
I you use wamp, you have apache, so just must set other site in your setting of apache. Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge [image: snake]*Curso Desarrollo Web con Python usando Django

select_for_update and transactions (bad dev UX in a feature)

2021-11-17 Thread Klemen Ċ trajhar
Hi! I noticed dangerous behaviour with testing and usage of *select_for_update *in transactions. This "feature" crashed some parts of production in our company. The "feature" I am talking about, is that test runner wraps all tests in a transaction. If you use *select_for_update* you have to wrap

Re: select_for_update and transactions (bad dev UX in a feature)

2021-11-17 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Klemen We recently changed atomic() to mark when it is created by the test runner for this ticket: https://code.djangoproject.com/ticket/33161 . This was for special case logic around the 'durable' flag to atomic(). Perhaps the newly added tracking can also be used for the check in select_for_

Re: select_for_update and transactions (bad dev UX in a feature)

2021-11-17 Thread Klemen Ċ trajhar
Hi Adam I will check into it. IMO using ATOMIC_REQUESTS is an antipattern. Views shouldn't know anything about the database. Services should handle all persistence related stuff and that's why transactions should only be used when necessary. Best! Klemen sreda, 17. november 2021 ob 23:09:58 U