tickets: 8256
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8256 | 2008-08-12 12:57:34 | 2011-09-28 16:12:16 | 2022-03-06 03:41:46.408684 | Unreviewed | closed | Core (Other) | dev | duplicate | Changeset [8282] broke settings.py | When doing `manage.py runserver` it seems the settings in `settings.py` is ignored. I traced the error to the a change in [8282]. When doing `__import__("projectname.settings")` it is actually the `projectname(/__init__.py)` that gets imported. From `help(__import__)`: {{{ When importing a module from a package, note that __import__('A.B', ...) returns package A when fromlist is empty, but its submodule B when fromlist is not empty. }}} I came up with a solution in the diff attached, which works for me. Regards, Christian | nobody | chrj | 0 | 1 | 0 | 0 | 0 | 0 |