What exactly would that achieve or do? Also what does PACKAGE in that 
context mean? Django has projects and apps and a simple settings.py file. 
Are you proposing to add a new file where apps could declare settings? How 
would those be merged, etc…

Cheers,
Florian

On Thursday, December 8, 2016 at 7:52:33 PM UTC+1, Zach wrote:
>
>
> On Thursday, December 8, 2016 at 8:16:02 AM UTC-8, Florian Apolloner wrote:
>>
>> On Thursday, December 8, 2016 at 5:04:46 PM UTC+1, Zach wrote:
>>>
>>> How about a PACKAGE setting similar to npm's package.json 
>>> <https://www.google.com/url?q=https%3A%2F%2Fdocs.npmjs.com%2Ffiles%2Fpackage.json&sa=D&sntz=1&usg=AFQjCNGYXD7-X0dBTsCLxdBWs_x9XEQ1sw>
>>> .
>>>
>>
>> Seems to be yet another way to do what custom management commands already 
>> over (with less overhead for sure, but also more limited)
>>
>
> The PACKAGE setting would be extendable and allow core settings to be 
> included. For example:
>
> PACKAGE = {
>     'scripts': {
>         'test': 'test --keepdb',
>         'runserver': 'runserver --ipv6',
>     },
>     'LOGGING': {
>         'version': 1,
>         'disable_existing_loggers': False,
>         'handlers': {
>             'file': {
>                 'level': 'DEBUG',
>                 'class': 'logging.FileHandler',
>                 'filename': '/path/to/django/debug.log',
>             },
>         },
>         'loggers': {
>             'django': {
>                 'handlers': ['file'],
>                 'level': 'DEBUG',
>                 'propagate': True,
>             },
>         },
>     },
> }
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/57a14518-4b3a-4df2-b7b7-500bc1efd372%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to