NEW: Fenrir v1.2.2 is now available — Logo & Favicon Patch! Read the changelog
configuration.md
docs configuration.md

Configuration

Application Configuration

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from fenrir import Fenrir

app = Fenrir(
    title="My Application",
    version="1.0.0",
    description="An amazing application",
    docs_url="/docs",
    redoc_url="/redoc",
    openapi_url="/openapi.json"
)

Environment-Based Configuration

1
2
3
4
5
6
import os
from fenrir import Fenrir

debug = os.getenv("DEBUG", "False") == "True"
app = Fenrir()
app.debug = debug

Custom Configuration Class

1
2
3
4
5
6
7
8
class Config:
    DEBUG = True
    TESTING = False
    DATABASE_URL = "postgresql://localhost/mydb"
    SECRET_KEY = "your-secret-key"

app = Fenrir()
app.config = Config()
Edit on GitHub Last Updated: Jun 04, 2026
© 2026 Fenrir Project.
main*
v1.2.2
Ln 1, Col 1
UTF-8
Prettier
Light Mode
Markdown