"""Site app specific configurations and (some) hardcoded data sets. """ from application import app COUNTRIES = [{'code': 'US', 'name': 'United States'}, {'code': 'GB', 'name': 'United Kingdom'}] GENRES = ['All', 'Rock', 'Hiphop', 'Pop'] @app.context_processor def inject_config_context(): context = {} context['countries'] = COUNTRIES context['genres'] = GENRES return context