- Database schema: tablets, users, loans (junction table) - CLI app: minimal_app.py - Web apps: app.py (Flask), simple_app.py (http.server) - Features: loan management, search, user loans view, project notes - Git structure: CONTRIBUTING.md, .gitignore Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
20 lines
No EOL
635 B
Python
20 lines
No EOL
635 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Check if Flask is available and provide installation instructions
|
|
"""
|
|
|
|
try:
|
|
import flask
|
|
print("✓ Flask is available!")
|
|
print("You can run the web version:")
|
|
print(" python3 simple_app.py")
|
|
print("Then open: http://localhost:8000")
|
|
except ImportError:
|
|
print("✗ Flask is not installed")
|
|
print("\nTo install Flask:")
|
|
print(" pip install flask")
|
|
print("\nOr use the system package manager:")
|
|
print(" sudo apt install python3-flask")
|
|
print("\nYou can still use the command-line version:")
|
|
print(" python3 minimal_app.py")
|
|
print(" python3 test_app.py") |