Hi, all, Hi, did anyone used this library before?
https://github.com/owais/django-webpack-loader In my html, I put {% load render_bundle from webpack_loader %} in the html, then I have {% render_bundle 'main' 'js' %}. However, django says SyntaxError('invalid syntax', ('<string>', 1, 2, "{% render_bundle 'main.js' %}")) This is the new error info: WebpackBundleLookupError at /chem_ocr/rxn Cannot resolve bundle main. Request Method: GET Request URL: http://localhost:8000/chem_ocr/rxn Django Version: 2.1.5 Exception Type: WebpackBundleLookupError Exception Value: Cannot resolve bundle main. Exception Location: /var/www/ocr/venv/lib/python3.6/site-packages/webpack_loader/loader.py in get_bundle, line 83 Python Executable: /var/www/ocr/venv/bin/python3 Python Version: 3.6.7 Python Path: ['/var/www/ocr/ocr', '/home/think/.vscode/extensions/ms-python.python-2019.2.5433/pythonFiles', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/var/www/ocr/venv/lib/python3.6/site-packages'] Server time: Mon, 4 Mar 2019 07:32:14 +0000 Does anyone know why? Thanks Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF35gg1M1B9QuSNK%3DRtyvFd6ZCxYzbtcwPds4JfRGWb90n4k%3DQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.