Usually whenever I got that, it's because you are using multiple bundles/chunks that might not be imported in the correct order.
Yep, adding something like that solved the problem :) gist.github.com/vmihalachi/7bceb1a...
Hey Vlad,
yes, that's exactly the solution. In my case I ended up creating a context_processor called env, like this:
context_processor
env
from django.conf import settings def env(request): return {'env': settings.ENVIRONMENT}
That allows me to check agains the environment instead of DEBUG in my templates, ie:
{% if env == 'production' %} {% render_bundle 'manifest' %} {% render_bundle 'vendor' %} {% endif %} {% render_bundle 'app' %}
I'll treat this and a few more issue in the second part :)
Thanks man, you are great!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Usually whenever I got that, it's because you are using multiple bundles/chunks that might not be imported in the correct order.
Yep, adding something like that solved the problem :)
gist.github.com/vmihalachi/7bceb1a...
Hey Vlad,
yes, that's exactly the solution. In my case I ended up creating a
context_processor
calledenv
, like this:That allows me to check agains the environment instead of DEBUG in my templates, ie:
I'll treat this and a few more issue in the second part :)
Thanks man, you are great!