""" Django settings for pysite project. Generated by 'django-admin startproject' using Django 2.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # import sys import environ env = environ.Env( DEBUG=(bool, False) ) # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DEBUG = env('DEBUG') # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! if DEBUG: ALLOWED_HOSTS = [ 'pythondiscord.local', 'admin.pythondiscord.local', 'api.pythondiscord.local', 'staff.pythondiscord.local', 'wiki.pythondiscord.local' ] SECRET_KEY = "+_x00w3e94##2-qm-v(5&-x_@*l3t9zlir1etu+7$@4%!it2##" elif 'CI' in os.environ: ALLOWED_HOSTS = ['*'] SECRET_KEY = "{©ø¬½.Þ7&Ñ`Q^Kº*~¢j