Skip to content

khadegd/django-webpack-starter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Django Webpack Starter

Hello fellow human. The repo uses

Python 3.9.*
Django 3.1.*
Webpack 5.4.*
Bootstrap 4.5.*
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 collectstatic
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 5 with Django 3.1 & Bootstrap 4. Yes, it can hot-reload.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published