django-webpack-loader problem

297 views
Skip to first unread message

Tom Zhang

unread,
Mar 5, 2019, 1:02:17 AM3/5/19
to django...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages