tickets: 8246
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8246 | 2008-08-12 00:03:46 | 2011-09-28 16:12:17 | 2022-03-06 03:41:44.921063 | Accepted | closed | Core (Management commands) | dev | fixed | Subpackage Settings Fix | r8282 introduces a regression by adding a line like so: {{{ #!python setup_environ(__import__(settings.SETTINGS_MODULE)) }}} I don't know why this line is used, but since `__import__` returns the first package, even in a dotted expression like `settings.development`, this line has the net effect of running `setup_environ` on `settings.__init__` instead of `settings.development`, which has, as you can imagine, negative effects - like breaking runserver (since it can't find any settings), and any management command that spawn a subprocess (which captures the new, incorrect DJANGO_SETTINGS_MODULE environment variable). The attached patch fixes this. (I'm guessing on the assignee, forgive me if I'm wrong.) | russellm | AdamG | 0 | 0 | 0 | 0 | 0 | 0 |