Features added: - Admin authentication system with is_admin field - Complete admin dashboard with user statistics - User management (create, edit, delete, toggle admin) - Protected admin routes with @admin_required decorator - Security features (prevent self-deletion, last admin protection) - Responsive admin UI with Bootstrap integration - Database migration script for admin field - Admin navigation link for authorized users Technical improvements: - Enhanced 3-column dashboard layout (tables | editor | saved queries) - Removed plus button and made right sidebar more compact - Admin user (admin/admin123) automatically created with admin privileges - Full CRUD operations for user management - Flash messages for user feedback - Form validation and error handling
18 lines
462 B
Plaintext
18 lines
462 B
Plaintext
# Flask Konfiguration
|
|
SECRET_KEY=your-secret-key-here
|
|
FLASK_ENV=development
|
|
FLASK_DEBUG=True
|
|
|
|
# Oracle Datenbank Konfiguration
|
|
ORACLE_HOST=your-oracle-host.com
|
|
ORACLE_PORT=1521
|
|
ORACLE_SERVICE_NAME=ORCL
|
|
ORACLE_USERNAME=your_username
|
|
ORACLE_PASSWORD=your_password
|
|
|
|
# PostgreSQL Datenbank Konfiguration (optional)
|
|
POSTGRES_HOST=your-postgres-host.com
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_DATABASE=your_database
|
|
POSTGRES_USERNAME=your_username
|
|
POSTGRES_PASSWORD=your_password |