You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

context_processors.py 507B

12345678910111213
  1. from django.conf import settings
  2. def metadata(request):
  3. """
  4. Add some generally useful metadata to the template context
  5. """
  6. return {'display_version': getattr(settings, 'DISPLAY_VERSION', False),
  7. 'version': getattr(settings, 'VERSION', 'N/A'),
  8. 'shop_name': settings.OSCAR_SHOP_NAME,
  9. 'shop_tagline': settings.OSCAR_SHOP_TAGLINE,
  10. 'google_analytics_id': getattr(settings,
  11. 'GOOGLE_ANALYTICS_ID', None)}