[PR #224] [MERGED] feat: add demo mode and allow for automatic admin creation from env variables #280

Closed
opened 2025-12-29 00:19:34 +01:00 by adam · 0 comments
Owner

📋 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: mainHead: demo_mode


📝 Commits (4)

  • 046e02d feat(app): add environment variables to automatically create superuser on startup
  • 47d34f3 feat(app): add a demo mode
  • 19f0bc1 feat(app): show current user e-mail on user menu
  • 26b218a feat(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.

## 📋 Pull Request Information **Original PR:** https://github.com/eitchtee/WYGIWYH/pull/224 **Author:** [@eitchtee](https://github.com/eitchtee) **Created:** 3/31/2025 **Status:** ✅ Merged **Merged:** 3/31/2025 **Merged by:** [@eitchtee](https://github.com/eitchtee) **Base:** `main` ← **Head:** `demo_mode` --- ### 📝 Commits (4) - [`046e02d`](https://github.com/eitchtee/WYGIWYH/commit/046e02d5067653c9aa33215bf046b37cf48606ec) feat(app): add environment variables to automatically create superuser on startup - [`47d34f3`](https://github.com/eitchtee/WYGIWYH/commit/47d34f3c27522919a89a7b78e0dc8bb36ea37528) feat(app): add a demo mode - [`19f0bc1`](https://github.com/eitchtee/WYGIWYH/commit/19f0bc1034618991c99c2bf753b028ff070f78c0) feat(app): show current user e-mail on user menu - [`26b218a`](https://github.com/eitchtee/WYGIWYH/commit/26b218ae51a676b81364ea354c4973dd84939b0f) feat(app): disable API when demo mode is enabled ### 📊 Changes **20 files changed** (+385 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `.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) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 00:19:34 +01:00
adam closed this issue 2025-12-29 00:19:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WYGIWYH#280