django settings imported incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restful |
Won't Fix
|
High
|
Michael Nelson |
Bug Description
STR:
* Create a test that overrides/patches various LAZR_RESTFUL_ settings,
Expected result:
* DjangoWebServic
Actual result:
* DjangoWebServic
I'm not certain if it's intentional but in lazr/restful/
{{{
import settings
}}}
but this is importing the project's settings.py module directly, rather than getting a handle on the settings via django.
{{{
settings = __import_
}}}
like the other django imports in lazr/restful/
Related branches
- Francis J. Lacoste (community): Needs Resubmitting
- Aaron Bentley (community): Approve
-
Diff: 31 lines (+2/-4)1 file modifiedsrc/lazr/restful/frameworks/django.py (+2/-4)
Changed in lazr.restful: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Hi Michael. I strongly suspect that you know more Django than any of us; and ISD is the only consumer of the Django code, so if it works for you with these changes, that's what we care about most.
Can you confirm that (a) you think that the __import__ spelling is what we are supposed to be doing and (b) when you make that change, everything else seems to work? If so, I'm happy to approve the change. A branch with the change and tests would make it happen fastest, of course.
Thank you
Gary