- Changed ownership of all files to scheianu:scheianu - Set directories to 755 permissions (rwxr-xr-x) - Set files to 644 permissions (rw-r--r--) - Made shell scripts executable (755) - Allows development without requiring sudo for file modifications - Improves development workflow and security
22 lines
613 B
Python
22 lines
613 B
Python
"""
|
|
Flask extensions initialization
|
|
Centralized extension management for the application
|
|
"""
|
|
from flask_sqlalchemy import SQLAlchemy
|
|
from flask_bcrypt import Bcrypt
|
|
from flask_login import LoginManager
|
|
from flask_migrate import Migrate
|
|
from flask_caching import Cache
|
|
|
|
# Initialize extensions (will be bound to app in create_app)
|
|
db = SQLAlchemy()
|
|
bcrypt = Bcrypt()
|
|
login_manager = LoginManager()
|
|
migrate = Migrate()
|
|
cache = Cache()
|
|
|
|
# Configure login manager
|
|
login_manager.login_view = 'auth.login'
|
|
login_manager.login_message = 'Please log in to access this page.'
|
|
login_manager.login_message_category = 'info'
|