in development: env-level configuration of the NPM_BIN_PATH

As asked by @anime-shed on #78
This commit is contained in:
Klaas van Schelven
2025-05-29 16:51:45 +02:00
parent 4c104714e3
commit da77957870
2 changed files with 5 additions and 1 deletions

View File

@@ -18,7 +18,8 @@ Code contributions are welcome! We use the GitHub PR process to review and merge
#### Tailwind
Bugsink uses tailwind for styling.
Bugsink uses tailwind for styling, and [django-tailwind](https://github.com/timonweb/django-tailwind/)
to "do tailwind stuff from the Django world".
If you're working on HTML, you should probably develop while running the following somewhere:

View File

@@ -167,3 +167,6 @@ LOGGING["loggers"]["snappea"]["level"] = "DEBUG"
LOGGING["formatters"]["snappea"]["format"] = "{asctime} - {threadName} - {levelname:7} - {message}"
ALLOWED_HOSTS = deduce_allowed_hosts(BUGSINK["BASE_URL"])
# django-tailwind setting; the below allows for environment-variable overriding of the npm binary path.
NPM_BIN_PATH = os.getenv("NPM_BIN_PATH", "npm")