simplesite icon indicating copy to clipboard operation
simplesite copied to clipboard

Under-used settings: `APP_DIR`, `STATIC_DIR`, `TEMPLATE_DIR`

Open lnoss opened this issue 2 years ago • 1 comments

Nice little guide. Just a note for the ones reading: the config file is already defining the path for the app folder, the static folder or the templates folder.

So when you are reading Chapter 1, don't forget that you could use the Pydantic Settings class directly instead of giving strings as paths.

lnoss avatar Jan 21 '24 19:01 lnoss

Thanks for the comment. I'll take a look soon and make the adjustment!

tataraba avatar Jan 21 '24 23:01 tataraba