Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit 2b2442a9 authored by Jon Yu's avatar Jon Yu
Browse files

Extract some Django settings, incorporate to compose

parent 4096b926
\ No newline at end of file
......@@ -3,6 +3,7 @@ version: '3'
build: .
env_file: .env
......@@ -20,12 +20,12 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '123'
SECRET_KEY = os.getenv('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = os.getenv('DEBUG') in ['true', 'True', '1', 'yes'] if os.getenv('DEBUG') else False
ALLOWED_HOSTS = ['localhost']
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', '').split(',')
# Application definition
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment