mirumee / saleor-app-framework-python

Python Saleor App/Extension boilerplate. Batteries included.
https://mirumee.github.io/saleor-app-framework-python/
BSD 3-Clause "New" or "Revised" License
50 stars 23 forks source link

Change a way of handling a settings #4

Closed korycins closed 3 years ago

korycins commented 3 years ago

Tldr:

class AppSettings(Settings):
    project_dir = PROJECT_DIR
    static_dir = os.path.join(PROJECT_DIR, "static")
    templates_dir = os.path.join(PROJECT_DIR, "templates")

or

class AppSettings(Settings):
    class Config:
        env_file = ".env"