Advertisement
Guest User

Untitled

a guest
May 18th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. # Use this file as a basis for your local settings file.
  3. # If you name it 'local.py', it will be used as the project's settings
  4. # file automatically.
  5. # If you use a different name or folder, set the DJANGO_SETTINGS_MODULE
  6. # environment variable
  7. # to point to it (in Python dotted format).
  8.  
  9. # Pick one of the base settings files below, and remove the other lines:
  10. # from production import * # @UnusedWildImport
  11. # from hml import * # @UnusedWildImport
  12. # from dev import * # @UnusedWildImport
  13. from development import * # @UnusedWildImport
  14. # from test import * # @UnusedWildImport
  15.  
  16. DATABASES = {
  17. 'default': {
  18. # Database Master
  19. # 'NAME': 'logada_master',
  20. # Database for register_simplification
  21. 'NAME': 'oramadb',
  22. # Database for B2B
  23. # 'NAME': 'b2b',
  24. # Database for informe_de_rendimentos
  25. # 'NAME': 'informe_rendimentos',
  26. # Database for new_advisor_tool
  27. # 'NAME': 'new_advisor_tool',
  28. 'ENGINE': 'django.db.backends.mysql',
  29. 'USER': 'root',
  30. 'PASSWORD': 'root',
  31. 'HOST': 'localhost',
  32. 'PORT': '3306',
  33. 'OPTIONS': {"init_command": "SET storage_engine=INNODB"}
  34. },
  35. 'cep': {
  36. 'NAME': 'cep',
  37. 'ENGINE': 'django.db.backends.mysql',
  38. 'USER': 'root',
  39. 'PASSWORD': 'root',
  40. 'HOST': 'localhost',
  41. 'PORT': '3306',
  42. 'OPTIONS': {"init_command": "SET storage_engine=INNODB"}
  43. },
  44. 'fundos': {
  45. 'NAME': 'fundos',
  46. 'ENGINE': 'django.db.backends.mysql',
  47. 'USER': 'root',
  48. 'PASSWORD': 'root',
  49. 'HOST': 'localhost',
  50. 'PORT': '3306',
  51. 'OPTIONS': {"init_command": "SET storage_engine=INNODB"}
  52. }
  53. }
  54.  
  55.  
  56. # URL settings (optional).
  57. # HOST_NAME = '192.168.15.74:3000' # Only change if your instance uses a
  58. # HOST_NAME = 'dev.orama.com.br:3000' # Only change if your instance uses a
  59. # hostname different than 'localhost'.
  60.  
  61. # Database settings (required for all instances).
  62. # DATABASES = db_config(main_schema, cep_schema, ambima_schema,
  63. # username, password, host)
  64.  
  65. # Email settings (required for development instances).
  66. # Developer instances should set the catch-all address to avoid having
  67. # mail sent to the whole development team.
  68. DETOUR_EMAIL_ADDRESS = 'julio <julio.marins@developers.orama.com.br>'
  69.  
  70. # Enable conditional features (optional).
  71. # FEATURE_TOGGLES['xyz'] = True
  72.  
  73. # Add other local settings here as required.
  74.  
  75. # Email settings.
  76. # All instances (except production) should set a custom sender name to it
  77. # easier to distinguish where test email came from.
  78. EMAIL_FROM_ADDRESS = 'julio <julio.marins@developers.orama.com.br>'
  79. # Developer instances should set the catch-all address to avoid having
  80. # mail sent to the whole development team.
  81. DETOUR_EMAIL_ADDRESS = 'julio <julio.marins@developers.orama.com.br>'
  82.  
  83. # Enable conditional features (optional).
  84. FEATURE_TOGGLES['xyz'] = True
  85.  
  86. CACHES = {
  87. 'default': {
  88. 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
  89. 'LOCATION': 'orama_web'
  90. }
  91. }
  92.  
  93. DISABLE_REGISTRATION_PDF_RENDER = True
  94.  
  95.  
  96. EMAIL_HOST = 'smtp.gmail.com'
  97. # Redefine this in the local settings file.
  98. EMAIL_HOST_USER = 'julio.marins@developers.orama.com.br'
  99. EMAIL_HOST_PASSWORD = 'binah418' # Redefine this in the local settings file.
  100. EMAIL_USE_TLS = True
  101. EMAIL_PORT = 587
  102.  
  103. # Use these variables to run server locally, but with pre configurations
  104. # WSGI_APPLICATION = 'orama_web.wsgi_dev.application'
  105. ADMINS = (
  106. ('julio', 'julio.marins@developers.orama.com.br'),
  107. )
  108. MANAGERS = ADMINS
  109. # AWS_ACCESS_KEY_ID = 'AKIAJCZP43JF4WTRZT7A'
  110. # AWS_SECRET_ACCESS_KEY = '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'
  111. # INSTALLED_APPS = [elem for elem in INSTALLED_APPS
  112. # if elem != 'keyerror_django_client']
  113. ADMIN_HOST_NAME = 'localhost:3000'
  114.  
  115. # WKHTMLTOPDF_PATH = 'C:/Program Files/wkhtmltopdf/bin/wkhtmltopdf.exe'
  116. WKHTMLTOPDF_PATH = 'wkhtmltopdf'
  117.  
  118. CORS_ORIGIN_REGEX_WHITELIST = ('http://localhost:8000')
  119. CORS_URLS_REGEX = '^.*$'
  120.  
  121. STATICFILES_DIRS += (
  122. os.path.join(PROJECT_DIR, 'orama_web/webapps/webapp/static-dev'),
  123. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement