feat: initialize database with demo data on first run and update README
Some checks failed
Backend CI / lint-and-test (push) Failing after 1m33s
Frontend CI / lint-and-build (push) Successful in 17s

This commit is contained in:
2025-10-11 21:52:30 +02:00
parent 25ca7ab196
commit f9086d2d04
4 changed files with 27 additions and 4 deletions

View File

@@ -32,6 +32,10 @@ except ImportError:
def check_virtualenv():
"""Check if we're running in a virtual environment."""
# Skip virtualenv check in Docker containers
if os.getenv('INIT_DEMO_DB') == 'true':
return
if not hasattr(sys, 'real_prefix') and not (hasattr(sys, 'base_prefix') and sys.base_prefix != sys.prefix):
print("ERROR: Virtual environment not activated. Run:")
print(" .venv\\Scripts\\Activate.ps1 (PowerShell)")