Skip to content

Commit

Permalink
No longer attempts to read environment variables from .env until we f…
Browse files Browse the repository at this point in the history
…igure out how to make it work with Apache
  • Loading branch information
jddanna committed Feb 24, 2021
1 parent 6751bcd commit ea4dfc7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions graphspace/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import os
from elasticsearch import Elasticsearch

load_dotenv()

BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
ALLOWED_HOSTS = ['*']
Expand Down Expand Up @@ -164,6 +163,6 @@
}

MAINTENANCE = False
IS_MAINTENANCE_SCHEDULED = True if os.getenv('IS_MAINTENANCE_SCHEDULED', "false") == "true" else False
MAINTENANCE_START_DATETIME = os.getenv('MAINTENANCE_START_DATETIME', None)
MAINTENANCE_END_DATETIME = os.getenv('MAINTENANCE_END_DATETIME', None)
IS_MAINTENANCE_SCHEDULED = False;
MAINTENANCE_START_DATETIME = None;
MAINTENANCE_END_DATETIME = None;

0 comments on commit ea4dfc7

Please sign in to comment.