Advertisement
Mochinov

Untitled

Dec 23rd, 2021
1,247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.54 KB | None | 0 0
  1.  
  2. # GENERAL
  3. # ------------------------------------------------------------------------------
  4. # https://docs.djangoproject.com/en/dev/ref/settings/#debug
  5. PRODUCTION = False
  6. DEBUG = True
  7. # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
  8. SECRET_KEY = env('DJANGO_SECRET_KEY', default='*&&*YDHBhjbdjhbdkGjfrKni3272omdl@#^$hbfFwfef$#*%$yfhfwFFD')
  9. # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
  10.  
  11. def show_toolbar(request):
  12.     return True
  13. DEBUG_TOOLBAR_CONFIG = {
  14.     "SHOW_TOOLBAR_CALLBACK" : show_toolbar,
  15. }
  16.  
  17. # CACHES
  18. # ------------------------------------------------------------------------------
  19. # https://docs.djangoproject.com/en/dev/ref/settings/#caches
  20. CACHES = {
  21.     'default': {
  22.         'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
  23.         'LOCATION': ''
  24.     }
  25. }
  26.  
  27. # TEMPLATES
  28. # ------------------------------------------------------------------------------
  29. # https://docs.djangoproject.com/en/dev/ref/settings/#templates
  30. TEMPLATES[0]['OPTIONS']['debug'] = DEBUG  # noqa F405
  31.  
  32. # EMAIL
  33. # ------------------------------------------------------------------------------
  34. # https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
  35. EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND', default='django.core.mail.backends.console.EmailBackend')
  36. # https://docs.djangoproject.com/en/dev/ref/settings/#email-host
  37. EMAIL_HOST = 'localhost'
  38. # https://docs.djangoproject.com/en/dev/ref/settings/#email-port
  39. EMAIL_PORT = 1025
  40.  
  41.  
  42. # https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config
  43. DEBUG_TOOLBAR_CONFIG = {
  44.     'DISABLE_PANELS': [
  45.         'debug_toolbar.panels.redirects.RedirectsPanel',
  46.     ],
  47.     'SHOW_TEMPLATE_CONTEXT': True,
  48. }
  49. # https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#internal-ips
  50. # INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', '10.211.55.2', '10.211.55.3',]
  51.  
  52. # '10.211.55.3', '10.211.55.2']
  53. # MIDDLEWARE += ['apps.middleware.TrackUsersMiddleware']
  54.  
  55. # if env('USE_DOCKER') == 'yes':
  56. #     import socket
  57. #     hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
  58. #     INTERNAL_IPS += [ip[:-1] + '1' for ip in ips]
  59.  
  60. # django-extensions
  61. # ------------------------------------------------------------------------------
  62. # https://django-extensions.readthedocs.io/en/latest/installation_instructions.html#configuration
  63. # INSTALLED_APPS += ['django_extensions', 'debug_toolbar']  # noqa F405
  64.  
  65. # Credintials for Oauth server-nmo application
  66. # ------------------------------------------------------------------------------
  67.  
  68. CLIENT_ID = 'yVFwgbU07sEtnkw2PWXI7J6UiQRxgTJuGijWqmV2'
  69.  
  70. CLIENT_SECRET = 'glbByXB5EfcnUTqcmHg9SFt6tSUHzeOTR4I0yxKDG2BIaIjSM1uGP59fftFxG2XhbUHDx4eulMvFLPMqhWPHP8YpsT0xJc6PKZUMomHcaQ54ADPr1Ecz75hgquBUQPSz'
  71.  
  72. # JET_PROJECT = 'test_542'
  73.  
  74. # JET_TOKEN = '89570967-6d19-4525-8d5d-e85eab9523b3'
  75. CACKLE_API_KEY = "a4Jv0OJ7hQp3tE4OCxjlVWKfJ7T4Tf2RfL1wjyp3U04KmKdXEloQToW27dUhr1fa"
  76. CACKLE_ID = "72334"
  77.  
  78. SITE_URL = 'http://85.143.174.248'
  79.  
  80.  
  81.  
  82. MIDDLEWARE =  ['request_logging.middleware.LoggingMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware'] + MIDDLEWARE
  83.  
  84.  
  85. ##### LOGGING ######
  86. # LOGGING = {
  87. #     'version': 1,
  88. #     'disable_existing_loggers': False,
  89. #     'handlers': {
  90. #         'console': {
  91. #             'class': 'logging.StreamHandler',
  92. #         },
  93. #     },
  94. #     'loggers': {
  95. #         'django.request': {
  96. #             'handlers': ['console'],
  97. #             'level': 'DEBUG',  # change debug level as appropiate
  98. #             'propagate': False,
  99. #         },
  100. #     },
  101. # }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement