question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disable STATIC_URL ?

See original GitHub issue

Hello,

I’d like to route all my static assets through flask. Is there a way to stop the functionality provided by STATIC_URL? Currently, I have it set in my dockerfile to a long random string, effectively disabling it (since this string would never be reached on the frontend), but this feels like a hack.

image

Is there a better solution?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
benyankecommented, Jan 12, 2019

I will try that next time I’m in for a refactor with this client. Thanks!

0reactions
github-actions[bot]commented, Apr 18, 2020

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to disable static url in angular ui-router? - Stack Overflow
So for future lurkers, here's what you need to do. Just add this attribute to your static page's anchor tag: target="_self". Like this:...
Read more >
Technical Tip: FortiGate Static URL filter actions explained
FortiGate Static URL filter with FortiGuard category filter ... to the needs (by default they are disabled - neither Allow, nor Block).
Read more >
Stop using STATIC_URL in templates
Stop using STATIC_URL and start using the static template tag to ensure your URLs work across storages. What does that mean? It means...
Read more >
The staticfiles app - Django documentation
Therefore if you remove an application from INSTALLED_APPS , it's a good idea to use the collectstatic --clear option in order to remove...
Read more >
Dynamic URLs vs. static URLs | Google Search Central Blog
A static URL is one that does not change, so it typically does not contain ... and not remove information by hiding parameters...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found