[FR] - 'static_files' directory in app folder structure
Closed this issue · 0 comments
dotchetter commented
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.
-
Create this directory in the template project here:
https://github.com/Hashmap-Software-Agency/pyttman-project-template -
Edit the
settings.py
file in said template (above) and addSTATIC_FILES_DIR = APP_BASE_DIR / "static_files"
making it convenient to access in the application asapp.settings.STATIC_FILES_DIR