diff --git a/README.md b/README.md index e21ffa6..000d759 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ ## Instructions: -- Custom functions can be added under `app/custom_functions/examples.py`. There is a sample custom function included that can be run via `=XLWINGS.HELLO("xlwings")`. There's also a streaming function (`=XLWINGS.STREAMING_RANDOM(2, 3)`). The `XLWINGS` prefix ("namespace") can be adjusted in via the settings (`XLWINGS_FUNCTIONS_NAMESPACE` in `.env` file). Except for the prod environment, `-dev` and `-staging` are automatically appended to avoid name clashes. -- Macros can be added under `app/routers/macros/example.py`. They will need to be bound to a button on either the ribbon (via `app/templates/manifest.xml`) or task pane (via `app/templates/taskpane.html`). There is a sample button `Hello World` included on both the ribbon and task pane. +- Custom functions can be added under `app/custom_functions/examples.py`. To add your own Python modules, see the instructions at the top of `examples.py`. There is a sample custom function included that can be run via `=XLWINGS.HELLO("xlwings")`. There's also a streaming function (`=XLWINGS.STREAMING_RANDOM(2, 3)`). The `XLWINGS` prefix ("namespace") can be adjusted in via the settings (`XLWINGS_FUNCTIONS_NAMESPACE` in `.env` file). Except for the prod environment, `-dev` and `-staging` are automatically appended to avoid name clashes. So if you run this under a dev environment, you'll find the custom functions under the `XLWINGS-DEV` prefix. +- Macros can be added under `app/routers/macros/examples.py`. To add your own Python modules, see the instructions at the top of `examples.py`. They will need to be bound to a button on either the ribbon (via `app/templates/manifest.xml`) or task pane (via `app/templates/taskpane.html`). There is a sample button `Hello World` included on both the ribbon and task pane. ## Prod deployment diff --git a/app/config.py b/app/config.py index 527fde3..6cec1ef 100644 --- a/app/config.py +++ b/app/config.py @@ -22,7 +22,7 @@ class Settings(BaseSettings): entraid_tenant_id: Optional[str] = None # Set to False if you have users from external organizations entraid_validate_issuer: bool = True - environment: Literal["dev", "staging", "prod"] = "dev" + environment: Literal["dev", "staging", "prod"] = "prod" functions_namespace: str = "XLWINGS" hostname: Optional[str] = None log_level: str = "INFO"