This commit is contained in:
Yohann D'ANELLO 2020-11-16 04:13:20 +01:00
parent 60d50a6c07
commit d63adcd1ee
1 changed files with 4 additions and 1 deletions

View File

@ -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