Re: Trimming in the settings file (Was: Re: Follow-up to #28307: Possible app_template improvements)

2017-08-31 Thread Melvyn Sopacua
Hi and thanks Aemeric, On Tue, Jun 27, 2017 at 7:55 AM, Aymeric Augustin wrote: > Hello Melvyn, > >> On 26 Jun 2017, at 12:21, Melvyn Sopacua wrote: >> >> keep STATIC_URL (which I rarely change) but remove STATIC_ROOT (which is >> different per project and sometimes even per install) is beyond

Re: Trimming in the settings file (Was: Re: Follow-up to #28307: Possible app_template improvements)

2017-06-26 Thread Aymeric Augustin
Hello Melvyn, > On 26 Jun 2017, at 12:21, Melvyn Sopacua wrote: > > keep STATIC_URL (which I rarely change) but remove STATIC_ROOT (which is > different per project and sometimes even per install) is beyond me. Back when Apache + mod_wsgi was the standard deployment stack, collecting staticfi

Re: Trimming in the settings file (Was: Re: Follow-up to #28307: Possible app_template improvements)

2017-06-26 Thread Melvyn Sopacua
On Monday 26 June 2017 20:25:58 Curtis Maloney wrote: > On 26/06/17 20:21, Melvyn Sopacua wrote: > > On Thursday 15 June 2017 08:14:02 Aymeric Augustin wrote: > > > > I see the point for the number of useless files. But in every > > release, settings.py has been trimmed more and more to the point

Re: Trimming in the settings file (Was: Re: Follow-up to #28307: Possible app_template improvements)

2017-06-26 Thread Curtis Maloney
On 26/06/17 20:21, Melvyn Sopacua wrote: On Thursday 15 June 2017 08:14:02 Aymeric Augustin wrote: I see the point for the number of useless files. But in every release, settings.py has been trimmed more and more to the point that it's next to useless. I'm wondering about the upside of that. C

Trimming in the settings file (Was: Re: Follow-up to #28307: Possible app_template improvements)

2017-06-26 Thread Melvyn Sopacua
On Thursday 15 June 2017 08:14:02 Aymeric Augustin wrote: > The more files get generated to startapp, the more empty useless files > accrue in many projets, because devs don't take the time to delete > those they don't use. ... > For this reason, I'm skeptical of attempts to extend the startapp

Re: Follow-up to #28307: Possible app_template improvements

2017-06-15 Thread Adam Johnson
I agree with Aymeric and Curtis too. You could distribute your startapp template as a third party package, even overriding the built startapp manage command to use your template by default. On 15 June 2017 at 07:16, Curtis Maloney wrote: > > > On 15/06/17 16:14, Aymeric Augustin wrote: > >> Hell

Re: Follow-up to #28307: Possible app_template improvements

2017-06-14 Thread Curtis Maloney
On 15/06/17 16:14, Aymeric Augustin wrote: Hello, The more files get generated to startapp, the more empty useless files accrue in many projets, because devs don't take the time to delete those they don't use. Beat me to the punch... I agree the default template should be as light as possib

Re: Follow-up to #28307: Possible app_template improvements

2017-06-14 Thread Aymeric Augustin
Hello, The more files get generated to startapp, the more empty useless files accrue in many projets, because devs don't take the time to delete those they don't use. Encouraging people to improve the structure of their Django code is worthwhile but I don't believe the startapp template is the

Re: Follow-up to #28307: Possible app_template improvements

2017-06-14 Thread Aymeric Augustin
-- Aymeric. > On 14 Jun 2017, at 21:30, mark.caglie...@gmail.com wrote: > > Hello everyone, > I'm a Django user for some years now, and I find myself tweaking the app > structure after `./manage.py startapp foo`. > > I try to modularize the code and keep things separated. For example I don'