12345678910111213141516171819202122 |
- import os
- import base64
- from pathlib import Path
- APP_NAME = "pycs2"
- # Build paths inside the project like this: BASE_DIR / 'subdir'.
- BASE_DIR = Path(__file__).resolve().parent.parent.parent
- SOCKETIO_PORT = os.environ.get("PYCS_SOCKETIO_PORT", 5000)
- # SECURITY WARNING: don't run with debug turned on in production!
- DEBUG = os.environ.get("PYCS_DEBUG", True)
- if isinstance(DEBUG, str):
- if DEBUG.isdigit():
- DEBUG = bool(int(DEBUG))
- else:
- DEBUG = DEBUG == "True"
|