Given the nightmare of relative imports in Python, where should I put a simple utils.py
file in a Django project that has multiple apps (accessible within the models.py
, admin.py
, views.py
all files of all app directories)?
It seems like there still isn't a good answer for this in 2019, even though Django is by far the most popular framework of the language.
Considering Python 2 will be sunset in January of 2020, please also provide an answer for Python 3.