nickjj / flask-static-digest

Flask extension to help make your static files production ready by md5 tagging and gzipping them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

has not working

daeeros opened this issue · comments

i have code like this:

<script src="{{ static_url_for('static', filename='loader/loader.js') }}"></script>

But in html page showing default name wizhout md5 name, how can i fix it?

image

Hi,

Did you run the digest command? It'll only be digested if you digest them which is normally done in production. In development by default if you don't digest it then it works like url_for does without the digests. But you can still run your server in development mode and digest your static files to see how it works.

Going to close this as my reply likely addresses why it wasn't digested.