Installation
Starting a new project?
Consider using django-gesha-template, which is pre-configured with django-gesha and a pipeline for TypeScript integration.
Install to Python environment using pip
Install app in Django project
Add gesha
to
INSTALLED_APPS
in your Django project's
settings:
Collect JavaScript assets
Run collectstatic
to collect django-gesha's JavaScript files.
Static file discovery
Django should locate django-gesha's JavaScript files automatically once the app is installed.
To check that the JavaScript bundle has been collected:
Advanced
Install to Node.js environment
Import in TypeScript
For example, in your main entry-point:
This would eliminate the need to collect JavaScript assets and load them in your HTML template.