mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-14 21:23:29 +01:00
[PR #224] [MERGED] feat: add demo mode and allow for automatic admin creation from env variables #280
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/eitchtee/WYGIWYH/pull/224
Author: @eitchtee
Created: 3/31/2025
Status: ✅ Merged
Merged: 3/31/2025
Merged by: @eitchtee
Base:
main← Head:demo_mode📝 Commits (4)
046e02dfeat(app): add environment variables to automatically create superuser on startup47d34f3feat(app): add a demo mode19f0bc1feat(app): show current user e-mail on user menu26b218afeat(app): disable API when demo mode is enabled📊 Changes
20 files changed (+385 additions, -56 deletions)
View changed files
📝
.env.example(+5 -0)📝
README.md(+5 -2)📝
app/WYGIWYH/settings.py(+5 -1)➕
app/apps/api/permissions.py(+10 -0)➕
app/apps/common/decorators/demo.py(+15 -0)➕
app/apps/common/management/__init__.py(+0 -0)➕
app/apps/common/management/commands/__init__.py(+0 -0)➕
app/apps/common/management/commands/setup_users.py(+137 -0)📝
app/apps/common/tasks.py(+38 -0)📝
app/apps/currencies/views/exchange_rates_services.py(+7 -0)📝
app/apps/export_app/views.py(+4 -0)📝
app/apps/import_app/views.py(+11 -0)📝
app/apps/rules/views.py(+16 -0)➕
app/fixtures/demo_data.json(+34 -0)📝
app/templates/includes/navbar/user_menu.html(+2 -0)📝
app/templates/includes/scripts/hyperscript/htmx_error_handler.html(+27 -12)📝
app/templates/layouts/base.html(+45 -34)📝
app/templates/users/login.html(+20 -7)📝
docker/dev/django/start(+2 -0)📝
docker/prod/django/start(+2 -0)📄 Description
No description provided
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.