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://docs.npmjs.com/files/package.json>.
>>
>
> 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 [email protected].
To post to this group, send email to [email protected].
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/38b073f3-4399-4883-ad9e-6ec56dea20f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.