mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-12 01:03:09 +00:00
Build and load bundle in Django
This commit is contained in:
parent
0dc3329f7a
commit
8f7ecef843
3 changed files with 7 additions and 0 deletions
|
@ -20,3 +20,4 @@ graphviz
|
|||
git
|
||||
gettext
|
||||
python3-django-ldapdb
|
||||
yarnpkg
|
|
@ -361,6 +361,11 @@ update_django() {
|
|||
python3 manage.py migrate
|
||||
echo "Applying Django migrations: Done"
|
||||
|
||||
echo "Packing JavaScript together..."
|
||||
yarnpkg install
|
||||
yarnpkg build
|
||||
echo "Packing JavaScript together: Done"
|
||||
|
||||
echo "Collecting web frontend statics ..."
|
||||
python3 manage.py collectstatic --noinput
|
||||
echo "Collecting web frontend statics: Done"
|
||||
|
|
|
@ -43,6 +43,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
<meta property="og:description" content="Networking managing website endorsed by FedeRez." />
|
||||
|
||||
{# Preload JavaScript #}
|
||||
<script src="{% static 'bundles/re2o.min.js' %}"></script>
|
||||
{% bootstrap_javascript %}
|
||||
<script src="/static/js/typeahead/typeahead.js"></script>
|
||||
<script src="/static/js/bootstrap-tokenfield/bootstrap-tokenfield.js"></script>
|
||||
|
|
Loading…
Reference in a new issue