feat: initialize database with demo data on first run and update README
This commit is contained in:
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user