andruten / django-webpack-starter

Django Webpack starter template for using Webpack 4 with Django 2.2 & Bootstrap 4. Yes, it can hot-reload.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django Webpack Starter

Hello fellow human. The repo uses

Python 3.7.*
Django 2.2.*
Webpack 4.39.*
Bootstrap 4.3.*
Pipenv

If you have any questions tweet me @khadegd.

Installing

Run the following commands.

git clone git@github.com:khadegd/django-webpack-starter.git demo
python3 -m venv .venv
source .venv/bin/activate
pip install pipenv
pipenv install
yarn

Hot reload:

Update setting.py -> WEBPACK_LIVE_SERVER = True
yarn start
python manage.py runserver_plus 0.0.0.0:8000

One off development build:

yarn run build-dev
python manage.py runserver_plus 0.0.0.0:8000

Production mode:

DEBUG = True
yarn run build-prod
python manage.py runserver_plus 0.0.0.0:8000 --insecure

Thanks

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Django Webpack starter template for using Webpack 4 with Django 2.2 & Bootstrap 4. Yes, it can hot-reload.

License:MIT License


Languages

Language:Python 53.5%Language:JavaScript 26.8%Language:HTML 16.0%Language:CSS 3.7%