mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-01 16:36:06 +00:00
feat(settings): WEBVIRTCLOUD_DEBUG=1 turns on Django's debug mode
DEBUG was fixed to False in the template, and Docker builds settings.py from it in each container: debug mode could only be had by editing the file inside a running container. It is now read from the environment like the other options; off unless the variable is 1. The toolbar's URLs follow settings-dev, which installs the toolbar, not DEBUG: with the dev packages present, DEBUG alone imported them without the app and every URL lookup failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
This commit is contained in:
parent
47d2a34403
commit
23ce5de31e
4 changed files with 18 additions and 10 deletions
|
|
@ -341,6 +341,7 @@ If libvirt warns `Host SMBIOS information is not available`, install `dmidecode`
|
|||
| `CSRF_TRUSTED_ORIGINS` | extra trusted origins, e.g. `https://wvc.example.com` |
|
||||
| `WEBVIRTCLOUD_HTTPS=1` | HTTPS profile, see [HTTPS and reverse proxy](#https-and-reverse-proxy) |
|
||||
| `WEBVIRTCLOUD_SERIAL_CONSOLE=1` | serial console, see [Serial console](#serial-console) |
|
||||
| `WEBVIRTCLOUD_DEBUG=1` | Django debug mode: error pages show the traceback and settings; for trying things out only, never on a panel others use |
|
||||
| `WEBVIRTCLOUD_DB_HOST` | use PostgreSQL instead of sqlite (new installs); `WEBVIRTCLOUD_DB_PORT`/`_NAME`/`_USER`/`_PASSWORD` default to 5432/webvirtcloud/webvirtcloud/empty |
|
||||
| `EMAIL_HOST`, `EMAIL_PORT`, `EMAIL_HOST_USER`, `EMAIL_HOST_PASSWORD`, `EMAIL_USE_TLS` | SMTP for e-mail OTP |
|
||||
| `WEBVIRTCLOUD_LOG_FILE` | log file (default `data/webvirtcloud.log`, rotated at 10 MB × 5) |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue