protibimbok / django-vite-plugin

This plugin configures Vite for use with Django backend.
103 stars 13 forks source link

Add `pyPath` option to allow setting different python executable #12

Closed protibimbok closed 1 year ago

protibimbok commented 1 year ago

The plugin used to run

python manage.py 'arg1' 'arg2'

Now, there is an option to customize the python executable path.

export default defineConfig({
    plugins: [
        ...
        djangoVite({
            ...
            pyPath: './to/idk/python'
        })
    ],
});

This would result in running the following command:

./to/idk/python manage.py 'arg1' 'arg2'