Skip to content

Following symlinks & static files #2285

Closed Answered by falkoschindler
kleynjan asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting observation, @kleynjan!

As a simple workaround, you can borrow the line from add_static_files and set follow_symlink=True:

app.mount('/static/', StaticFiles(directory='static', follow_symlink=True))

Maybe we should add such a parameter to add_static_files. 🤔

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@falkoschindler
Comment options

@ed2050
Comment options

Answer selected by falkoschindler
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants