A Circular Import of All Things

While working with Django for the first time, I got an inexplicable error. I couldn’t solve it until I used the python debugger to step through the offending program, and got a clue that I'd made <project>.settings unimportable by adding import django at the top of the file, which created a circular import for the program that was trying to load it and retrieve configuration variables. It’s the first time I’ve created that problem for myself.

7 January 2023

Previous
Previous

ChatGPT: of Questionable Utility

Next
Next

An Ill-Advised Introduction to vi