Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.12 KB

README.md

File metadata and controls

26 lines (15 loc) · 1.12 KB

webpack-django-template

A template that uses webpack to compile frontend code into Django template and src files.

Installation Instructions

Before starting the instructions below, please make sure you have Node.js and Python installed. To check, type npm -v and python --version in your terminal window to check for Node.js and Python respectively.

  1. Run npm install to install all npm dependencies.

  2. Run num run watch to watch files.

  3. (optional) Start a Python venv with python -m venv env.

  4. Run pip install requirements.txt to install all pip dependencies.

  5. Run python manage.py runserver to start the Django server.

  6. Visit 127.0.0.1:8000 to see the Django development server. Also visit the /test endpoint to see a different view.

Resources

Webpack Concepts
Django documentation
HtmlWebpackPlugin
jantimon/html-webpack-plugin