Hashmap-Software-Agency/Pyttman

[FR] - 'static_files' directory in app folder structure

Closed this issue · 0 comments

Please share your idea!
The use of a static_files is evident and repeated throughout my use of Pyttman.
I end up creating a folder in my apps called static_dir and then setting the path in settings.py as:

STATIC_FILES_DIR = APP_BASE_DIR / "static_files"

Additional context
The app structure should have a static_files folder out of the box.

  1. Create this directory in the template project here:
    https://github.com/Hashmap-Software-Agency/pyttman-project-template

  2. Edit the settings.py file in said template (above) and add STATIC_FILES_DIR = APP_BASE_DIR / "static_files" making it convenient to access in the application as app.settings.STATIC_FILES_DIR