os.getenv -> config.py
This commit is contained in:
@@ -10,13 +10,13 @@ import json
|
||||
import requests
|
||||
import base64
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
from config import settings
|
||||
|
||||
load_dotenv()
|
||||
# Load env is not needed as settings handles it
|
||||
|
||||
# Configuration
|
||||
API_URL = "http://localhost:8090/api/generations/import"
|
||||
SECRET = os.getenv("EXTERNAL_API_SECRET", "your_super_secret_key_change_this_in_production")
|
||||
SECRET = settings.EXTERNAL_API_SECRET or "your_super_secret_key_change_this_in_production"
|
||||
|
||||
# Sample generation data
|
||||
generation_data = {
|
||||
|
||||
Reference in New Issue
Block a user