'How can I get path of 3rd party app in Django settings.py
Solution 1:[1]
So I found the following solutions that works:
import importlib
LOCALE_PATHS = [
...,
os.path.join(
os.path.dirname(importlib.util.find_spec('django_celery_beat').origin),
'locale/',
),
]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Konstantin Smolyanin |

