Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # GENERAL
- # ------------------------------------------------------------------------------
- # https://docs.djangoproject.com/en/dev/ref/settings/#debug
- PRODUCTION = False
- DEBUG = True
- # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
- SECRET_KEY = env('DJANGO_SECRET_KEY', default='*&&*YDHBhjbdjhbdkGjfrKni3272omdl@#^$hbfFwfef$#*%$yfhfwFFD')
- # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
- def show_toolbar(request):
- return True
- DEBUG_TOOLBAR_CONFIG = {
- "SHOW_TOOLBAR_CALLBACK" : show_toolbar,
- }
- # CACHES
- # ------------------------------------------------------------------------------
- # https://docs.djangoproject.com/en/dev/ref/settings/#caches
- CACHES = {
- 'default': {
- 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
- 'LOCATION': ''
- }
- }
- # TEMPLATES
- # ------------------------------------------------------------------------------
- # https://docs.djangoproject.com/en/dev/ref/settings/#templates
- TEMPLATES[0]['OPTIONS']['debug'] = DEBUG # noqa F405
- # EMAIL
- # ------------------------------------------------------------------------------
- # https://docs.djangoproject.com/en/dev/ref/settings/#email-backend
- EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND', default='django.core.mail.backends.console.EmailBackend')
- # https://docs.djangoproject.com/en/dev/ref/settings/#email-host
- EMAIL_HOST = 'localhost'
- # https://docs.djangoproject.com/en/dev/ref/settings/#email-port
- EMAIL_PORT = 1025
- # https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config
- DEBUG_TOOLBAR_CONFIG = {
- 'DISABLE_PANELS': [
- 'debug_toolbar.panels.redirects.RedirectsPanel',
- ],
- 'SHOW_TEMPLATE_CONTEXT': True,
- }
- # https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#internal-ips
- # INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', '10.211.55.2', '10.211.55.3',]
- # '10.211.55.3', '10.211.55.2']
- # MIDDLEWARE += ['apps.middleware.TrackUsersMiddleware']
- # if env('USE_DOCKER') == 'yes':
- # import socket
- # hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
- # INTERNAL_IPS += [ip[:-1] + '1' for ip in ips]
- # django-extensions
- # ------------------------------------------------------------------------------
- # https://django-extensions.readthedocs.io/en/latest/installation_instructions.html#configuration
- # INSTALLED_APPS += ['django_extensions', 'debug_toolbar'] # noqa F405
- # Credintials for Oauth server-nmo application
- # ------------------------------------------------------------------------------
- CLIENT_ID = 'yVFwgbU07sEtnkw2PWXI7J6UiQRxgTJuGijWqmV2'
- CLIENT_SECRET = 'glbByXB5EfcnUTqcmHg9SFt6tSUHzeOTR4I0yxKDG2BIaIjSM1uGP59fftFxG2XhbUHDx4eulMvFLPMqhWPHP8YpsT0xJc6PKZUMomHcaQ54ADPr1Ecz75hgquBUQPSz'
- # JET_PROJECT = 'test_542'
- # JET_TOKEN = '89570967-6d19-4525-8d5d-e85eab9523b3'
- CACKLE_API_KEY = "a4Jv0OJ7hQp3tE4OCxjlVWKfJ7T4Tf2RfL1wjyp3U04KmKdXEloQToW27dUhr1fa"
- CACKLE_ID = "72334"
- SITE_URL = 'http://85.143.174.248'
- MIDDLEWARE = ['request_logging.middleware.LoggingMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware'] + MIDDLEWARE
- ##### LOGGING ######
- # LOGGING = {
- # 'version': 1,
- # 'disable_existing_loggers': False,
- # 'handlers': {
- # 'console': {
- # 'class': 'logging.StreamHandler',
- # },
- # },
- # 'loggers': {
- # 'django.request': {
- # 'handlers': ['console'],
- # 'level': 'DEBUG', # change debug level as appropiate
- # 'propagate': False,
- # },
- # },
- # }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement