A Django app to create configuration files for frontend Javascript framework.
Project description
Django Webpack Dev Server is a Django app to create configuration files for frontend Javascript framework. It uses webpack to bundle your frontend code.
Installation
Install using pip…
pip install django-webpack-dev-server
Supported Frontend Frameworks or Library
React (Javascript)
React (Typescript)
Quick start
Add “django_webpack_dev_server” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'django_webpack_dev_server', ]
Run python manage.py generate react to create a django app which has reactjs configuration.
Default django app name is frontend. You can provide your name by running python manage.py generate react --app_name your_app_name
Add the new django app to your INSTALLED_APPS setting like in step 1.
Configure urls.py of the project to point it to the newly created django app.
Run python manage.py runserver to start the django’s development Server.
cd into the newly created django app and run npm start
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-webpack-dev-server-0.0.11.tar.gz
.
File metadata
- Download URL: django-webpack-dev-server-0.0.11.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f39bebff1680f2e5ff5923bbdaade3205496e875dcf4185897330557cb9218f4 |
|
MD5 | 3a7a77a3f54f337a96931168aea535a0 |
|
BLAKE2b-256 | e9f7bd725db6ac3919d8e299d6093ac3b9435a6a3d722d446ce0c9884f069f35 |