Re: Feature suggestion: Option to suppress system checks in commands

2016-10-04 Thread Vlastimil Zíma
@bogdan: I don't quite like to use environment variables as configuration, but this is probably the way I'll go. Thanks for pointing it out. @tim: This time its 'auth.W004'. In order to allow username recycling we have constraint for unique usernames among active user's only. Django doesn't exp

Re: Feature suggestion: Option to suppress system checks in commands

2016-10-03 Thread Tim Graham
I'm interested to know which checks you want to suppress only in some cases? On Friday, September 30, 2016 at 7:33:02 AM UTC-4, Bogdan Bursuc wrote: > > Hi, > > You could add the setting through and env variable and obtain that > variable inside the settings file with > SILENCED_SYSTEM_CHECKS = b

Re: Feature suggestion: Option to suppress system checks in commands

2016-09-30 Thread Bogdan Bursuc
Hi, You could add the setting through and env variable and obtain that variable inside the settings file with SILENCED_SYSTEM_CHECKS = bool(os.environ.get("SILENCED_SYSTEM_CHEKS", false)) On Fri, Sep 30, 2016 at 11:31 AM Vlastimil Zíma wrote: > Hi everyone, > > I'd suggest an options for all c

Re: Feature suggestion: Option to suppress system checks in commands

2016-09-30 Thread GMail
Hi, wouldn't it be easier to create special settings for cron? Something like that: # myprj/settings/cron.py from myprj.settings import * SILENCED_SYSTEM_CHECKS = ... And in cron: ... python manage.py --settings=myprj.settings.cron > On 30 Sep 2016, at 11:31, Vlastimil Zíma

Re: Feature suggestion: Option to suppress system checks in commands

2016-09-30 Thread GMail
Hi, wouldn't it be easier to create special settings for cron? Something like that: # myprj/settings/cron.py from myprj.settings import * SILENCED_SYSTEM_CHECKS = ... And in cron: ... python manage.py --settings=myprj.settings.cron > On 30 Sep 2016, at 11:31, Vlastimil Zíma wrote: > > Hi

Feature suggestion: Option to suppress system checks in commands

2016-09-30 Thread Vlastimil Zíma
Hi everyone, I'd suggest an options for all commands to suppress a defined system checks when running a command. I know it is possible to defined SILENCED_SYSTEM_CHECKS in settings, but that has impact of everything including the check command itself. My point is to suppress system checks main