Alternative frontend for munin written in Django
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

50 lines
985 B

  1. # -*- coding: utf-8 -*-
  2. from djunin.settings import *
  3. import logging
  4. SECRET_KEY = 'TEST-SECRET-KEY'
  5. DEBUG = True
  6. DATABASES = {
  7. 'default': {
  8. 'ENGINE': 'django.db.backends.sqlite3',
  9. 'NAME': 'djunin',
  10. },
  11. }
  12. logging.basicConfig(
  13. level=logging.ERROR,
  14. format='%(asctime)s %(levelname)-7s %(message)s',
  15. )
  16. LOGGING = {
  17. 'version': 1,
  18. 'disable_existing_loggers': False,
  19. 'filters': {
  20. 'require_debug_false': {
  21. '()': 'django.utils.log.RequireDebugFalse'
  22. }
  23. },
  24. 'handlers': {
  25. 'mail_admins': {
  26. 'level': 'ERROR',
  27. 'filters': ['require_debug_false'],
  28. 'class': 'django.utils.log.AdminEmailHandler'
  29. }
  30. },
  31. 'loggers': {
  32. 'django.request': {
  33. 'handlers': ['mail_admins'],
  34. 'level': 'ERROR',
  35. 'propagate': True,
  36. },
  37. 'django.db.backends': {
  38. 'propagate': False,
  39. },
  40. }
  41. }
  42. MUNIN_DATA_DIR = ''