settings.py 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. """
  2. Django settings for mymontools project.
  3. For more information on this file, see
  4. https://docs.djangoproject.com/en/1.6/topics/settings/
  5. For the full list of settings and their values, see
  6. https://docs.djangoproject.com/en/1.6/ref/settings/
  7. """
  8. # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  9. import os
  10. BASE_DIR = os.path.dirname(os.path.dirname(__file__))
  11. # Quick-start development settings - unsuitable for production
  12. # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
  13. # SECURITY WARNING: keep the secret key used in production secret!
  14. SECRET_KEY = 'jq^jz@^d81$-f$=7h8m$6@uv-svs*mb@j&f%1zda2d_jirufvy'
  15. # SECURITY WARNING: don't run with debug turned on in production!
  16. DEBUG = True
  17. TEMPLATE_DEBUG = True
  18. ALLOWED_HOSTS = []
  19. # Application definition
  20. INSTALLED_APPS = (
  21. 'django.contrib.admin',
  22. 'django.contrib.auth',
  23. 'django.contrib.contenttypes',
  24. 'django.contrib.sessions',
  25. 'django.contrib.messages',
  26. 'django.contrib.staticfiles',
  27. 'mymontools',
  28. 'plugin',
  29. 'traps',
  30. 'states',
  31. 'nagtrap',
  32. )
  33. MIDDLEWARE_CLASSES = (
  34. 'django.contrib.sessions.middleware.SessionMiddleware',
  35. 'django.middleware.common.CommonMiddleware',
  36. 'django.middleware.csrf.CsrfViewMiddleware',
  37. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  38. 'django.contrib.messages.middleware.MessageMiddleware',
  39. 'django.middleware.clickjacking.XFrameOptionsMiddleware',
  40. )
  41. ROOT_URLCONF = 'mymontools.urls'
  42. WSGI_APPLICATION = 'mymontools.wsgi.application'
  43. # Database
  44. # https://docs.djangoproject.com/en/1.6/ref/settings/#databases
  45. DATABASES = {
  46. 'default': {
  47. 'ENGINE': 'django.db.backends.mysql',
  48. 'NAME': 'snmptt',
  49. 'USER': 'snmptt',
  50. 'PASSWORD': 'snmptt',
  51. 'HOST': '',
  52. 'PORT': '',
  53. }
  54. }
  55. # Internationalization
  56. # https://docs.djangoproject.com/en/1.6/topics/i18n/
  57. LANGUAGE_CODE = 'en-us'
  58. TIME_ZONE = 'Europe/Berlin'
  59. USE_I18N = True
  60. USE_L10N = True
  61. USE_TZ = True
  62. # Static files (CSS, JavaScript, Images)
  63. # https://docs.djangoproject.com/en/1.6/howto/static-files/
  64. STATIC_URL = '/static/'
  65. STATIC_ROOT = os.path.join(BASE_DIR, 'static')
  66. TEMPLATE_CONTEXT_PROCESSORS = (
  67. 'django.contrib.auth.context_processors.auth',
  68. 'django.core.context_processors.request',
  69. 'django.core.context_processors.debug',
  70. 'django.core.context_processors.i18n',
  71. 'django.core.context_processors.media',
  72. 'django.core.context_processors.static',
  73. 'django.core.context_processors.tz',
  74. 'django.contrib.messages.context_processors.messages',
  75. )