Awesome I just tried this but I am getting an AttributeError: ‘NoneType’ object has no attribute…
Guger
1

Hello Guger,

Sorry for the delay in my reply. Without having the full source it will be hard to diagnose exactly what the issue is.

You only need to set the static folder to something else in a blueprint if you need it to be different then the main applications static folder.

The way you have it setup right now is a little bit confusing.

Essentially this is where your myJSfile.js should be located for Flask to find it based on your code:

your_app/static/myJSfile.js

and you are telling flask the url to the file should be/shopify_bp/static/myJSfile.js which im not sure is what you want.

My guess is that it is not locating your static file. Here are a couple links for you to check out on this issue

If you need further assistance let me know but it would be really helpful if you could post a bit more of your code as well.

Hope that helps!

Vasily

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.