-
-
Notifications
You must be signed in to change notification settings - Fork 42
03.2 Configuration
sunithvs edited this page Feb 23, 2025
·
1 revision
The configuration module manages all settings and environment variables for the devb.io application.
The Settings class in settings.py is the central configuration management system.
-
API Authentication
-
API_KEYS: List of valid API keys from environment variables - Required for application startup
-
-
Debug Mode
-
DEBUG: Controlled via environment variable - Defaults to false
-
-
Directory Paths
-
BASE_DIR: Root directory of the project -
DATA_DIR: Data storage directory -
TEMPLATES_DIR: Template files location -
HTML_OUTPUT_DIR: Generated HTML output location -
LOGS_DIR: Log files directory
-
-
API Token Management
- Thread-safe token rotation for GitHub API
- Token retrieval methods:
get_github_token()get_groq_key()
Required environment variables:
-
API_KEYS: Comma-separated list of valid API keys -
DEBUG: Boolean flag for debug mode - Optional API tokens for various services
config/
├── settings.py # Main settings file
└── __init__.py
The Settings class is designed to be used as a singleton and provides centralized access to all configuration values across the application.
-
Getting Started
-
Integrations
-
Technical Docs
-
Quick Links