Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dotchetter opened this issue Nov 27, 2023 · 0 comments
Closed

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

dotchetter opened this issue Nov 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@dotchetter
Copy link
Collaborator

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

@dotchetter dotchetter added the enhancement New feature or request label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant