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
ALLOWED_HOSTS=127.0.0.1,localhost
DEBUG=1
SECRET_KEY=123
\ No newline at end of file
......@@ -3,6 +3,7 @@ version: '3'
services:
app:
build: .
env_file: .env
ports:
- 127.0.0.1:8000:8000
volumes:
......
......@@ -20,12 +20,12 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/
# 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', '127.0.0.1').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