Tip for using static_cache in other projects #41
possnfiffer
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently in my project, all my folders are directly inside the root folder.
ProjectRoot/infrustructure
,ProjectRoot/static
What I did to get my static cache to work was to add an empty
__init__.py
to myProjectRoot
,import __init__.py
into myProjectRoot/infrastructure/static_cache.py
file and set my__full_path
like so:I then added to my viewmodelbase:
so I could access
${build_cache_id('/static/some/file.file')}
in my shared chameleon template.Beta Was this translation helpful? Give feedback.
All reactions