Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Jacob Kaplan-Moss
Hi folks - I’d like to gauge interest in adopting dj-database-url (http://github.com/jacobian/dj-database-url) as an official project (https://github.com/django/deps/blob/master/final/0007-official-projects.rst). This is my pre-proposal. I think dj-database-url is very widely-used, and scratches a

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Tobias McNulty
I think it's a great idea. On Thu, Jul 18, 2019, 12:46 PM Jacob Kaplan-Moss wrote: > Hi folks - > > I’d like to gauge interest in adopting dj-database-url > (http://github.com/jacobian/dj-database-url) as an official project > ( > https://github.com/django/deps/blob/master/final/0007-official-pr

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Adam Johnson
+1 from me too. On Thu, 18 Jul 2019 at 17:55, Tobias McNulty wrote: > I think it's a great idea. > > On Thu, Jul 18, 2019, 12:46 PM Jacob Kaplan-Moss > wrote: > >> Hi folks - >> >> I’d like to gauge interest in adopting dj-database-url >> (http://github.com/jacobian/dj-database-url) as an offic

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Jani Tiainen
I'm definitely +1 too. to 18. heinäk. 2019 klo 20.41 Adam Johnson kirjoitti: > +1 from me too. > > On Thu, 18 Jul 2019 at 17:55, Tobias McNulty > wrote: > >> I think it's a great idea. >> >> On Thu, Jul 18, 2019, 12:46 PM Jacob Kaplan-Moss >> wrote: >> >>> Hi folks - >>> >>> I’d like to gauge

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Kevin Grinberg
I've more commonly found myself using https://pypi.org/project/dsnparse/ more often than dj-database-url, due to support for DSNs in setting CACHES (with Heroku Redis for example, you get a REDIS_URL exposed the same way). I don't think the maintainer is offering to do take dsnparse under DEP 7,

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Mariusz Felisiak
See a ticket [1] and previous discussion [2] for reference. [1] - https://code.djangoproject.com/ticket/28236 [2] - https://groups.google.com/forum/#!topic/django-developers/G0TtlhH2RUE/discussion -- You received this message because you are subscribed to the Google Groups "Django developers

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Raffaele Salmaso
Hi I'm working[¹] on https://github.com/django/django/pull/10786 which is an "evolution" of dj-database-url which handle more settings types (by default even the email settings, but it is possible to handle any other type). I'll happy to finish it. [¹] well, in my really little free time On Thu,

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Jani Tiainen
Apparently there has been few attempts to integrate dj-database-url or some other url parser. But what happened to them since so far none of them were completed? to 18. heinäk. 2019 klo 22.32 Raffaele Salmaso kirjoitti: > Hi > I'm working[¹] on https://github.com/django/django/pull/10786 which

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Raffaele Salmaso
On Thu, Jul 18, 2019 at 9:49 PM Jani Tiainen wrote: > But what happened to them since so far none of them were completed? > For my case: life :D Anyway, I'll be happy to finish it. -- | Raffaele Salmaso | https://salmaso.org | https://bitbucket.org/rsalmaso | https://github.com/rsalmaso -- Yo

#30646 - close_if_unusable_or_obsolete fails to close unusable connections

2019-07-18 Thread Daniel Neuhaeuser
Hello, I'd like to start a discussion about the ticket I created https://code.djangoproject.com/ticket/30646 that was closed as won't fix. Essentially the ticket is about how to handle database disconnects. These can happen for a variety of reasons such as network problems or failover from a m

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Jacob Kaplan-Moss
Puling together a few things: On Jul 18, 2019, 3:13 PM -0400, Kevin Grinberg , wrote: > I've more commonly found myself using pypi.org/project/dsnparse/ more often > than dj-database-url, due to support for DSNs in setting CACHES (with Heroku > Redis > for example, you get a REDIS_URL exposed th

Re: Pre-proposal: adopt dj-database-url as a DEP 7 official project

2019-07-18 Thread Aymeric Augustin
Hello, In the short term, I'm in favor of moving dj-database-url to the Django organization. I have only one concern. dj-database-url supports a few third-party database backends: https://github.com/jacobian/dj-database-url/blob/004150c17e1519be408f87e0a2d16a8633cad89f/dj_database_url.py#L34-L

Re: #30646 - close_if_unusable_or_obsolete fails to close unusable connections

2019-07-18 Thread Aymeric Augustin
Hello Daniel, In the PR you propose to ping all database connections at the beginning and at the end of every HTTP request. I'm positive that this will have a significant performance impact. It's quite common to have secondary database connections that are rarely used, not scaled to be pinged t

Re: Provide a simpler way to default runserver IP/port to 0.0.0.0:8000

2019-07-18 Thread Mario Frasca
was this rejected? my use case is: I have a single django program, which I run in multiple instances, each on a different port and connecting to a different database. for each instance, I have a separate `config_INSTANCE.py` file. the database settings fit in the `config` file, but I have to p