Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khadegd/django-webpack-starter
Django Webpack starter template for using Webpack 5 with Django 3.1 & Bootstrap 4. Yes, it can hot-reload.
https://github.com/khadegd/django-webpack-starter
assets django django-webpack-loader starter-template webpack
Last synced: 13 days ago
JSON representation
Django Webpack starter template for using Webpack 5 with Django 3.1 & Bootstrap 4. Yes, it can hot-reload.
- Host: GitHub
- URL: https://github.com/khadegd/django-webpack-starter
- Owner: khadegd
- License: mit
- Created: 2017-10-12T03:03:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:57:21.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T21:55:47.092Z (3 months ago)
- Topics: assets, django, django-webpack-loader, starter-template, webpack
- Language: Python
- Homepage:
- Size: 4.92 MB
- Stars: 59
- Watchers: 1
- Forks: 2
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- -awesome-django - django-webpack-starter - Django Webpack starter template for using Webpack 4. (Projects / Boilerplate)
- awesome-django - django-webpack-starter - Django Webpack starter template for using Webpack 4. (Projects / Boilerplate)
README
# 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](https://twitter.com/khadegd).## Installing
Run the following commands.
```
git clone [email protected]: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
* Colt Steele - [Webpack Course YouTube](https://www.youtube.com/playlist?list=PLblA84xge2_zwxh3XJqy6UVxS60YdusY8)
* Chi Shang Cheng - [Integrating webpack-dev-server with Django](https://cscheng.info/2016/08/03/integrating-webpack-dev-server-with-django.html)## Authors
* **Ganesh Khade** - Twitter - [@khadegd](https://twitter.com/khadegd)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details