I've added enum in the settings.py file
class Syncs(Enum):
A = 'a'
B = 'b'
when I try to use them in an app by importing from django.conf import settings, it raises:
AttributeError: 'Settings' object has no attribute Syncs
on the other hand if I import settings file directly it works
I know it's because from django.conf import settings works differently so that's why this doesn't work.
Is there some recommended way to do this?
So far I do:
class Syncs(Enum):
A = 'a'
B = 'b'
SYNCS = Syncs