diff --git a/lglog/settings.py b/lglog/settings.py index 395517c..b1344ed 100644 --- a/lglog/settings.py +++ b/lglog/settings.py @@ -12,7 +12,10 @@ https://docs.djangoproject.com/en/3.1/ref/settings/ from pathlib import Path -from .secrets import OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, SUPERUSERS +try: + from .secrets import OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, SUPERUSERS +except ImportError: + from .secrets_example import OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, SUPERUSERS # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent