Skip to content

Commit

Permalink
Add default for SETTINGS_MODULE
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsil committed Jan 15, 2024
1 parent 331054d commit 8f4d884
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion saffier/conf/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
from dymmond_settings import settings as settings
import os

try:
from dymmond_settings import settings as settings
except ModuleNotFoundError:
os.environ.setdefault("SETTINGS_MODULE", "saffier.conf.global_settings.SaffierSettings")
from dymmond_settings import settings as settings

0 comments on commit 8f4d884

Please sign in to comment.