Changes between Initial Version and Version 1 of Ticket #30872, comment 5


Ignore:
Timestamp:
Oct 12, 2019, 9:55:19 AM (5 years ago)
Author:
Carlton Gibson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30872, comment 5

    initial v1  
    1 As I read it, the check is to catch the (I'd guess) common enough, error of providing a DJANGO_SETTINGS_MODULE, maybe via `--settings`, but misspelling it or such. Then we want to re-trigger the settings error (which is swallowed twice before). (This is also why we can't just check `settings.configured`, because that'll be `False` but not re-trigger the error.
     1As I read it, the check is to catch the (I'd guess) common enough, error of providing a DJANGO_SETTINGS_MODULE, maybe via `--settings`, but misspelling it or such. Then we want to re-trigger the settings error (which is swallowed twice before). (This is also why we can't just check `settings.configured`, because that'll be `False` but not re-trigger the error.)
    22
    33The `else` is for the other (I'd guess) common error of having an app command, but forgetting to provide settings, so it doesn't get found.
Back to Top