Advertisement
Guest User

Untitled

a guest
Sep 12th, 2016
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.64 KB | None | 0 0
  1. import os
  2. from .base import *
  3.  
  4. DEBUG = True
  5. TEMPLATE_DEBUG = DEBUG
  6. MEDIA_FROM_TESTSERVER = True
  7. TESTING = False
  8.  
  9. DJANGO_DIR = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
  10.  
  11. TEMPLATE_DIRS = (
  12.     os.path.join(DJANGO_DIR, 'templates'),
  13. )
  14.  
  15. STATICFILES_DIRS = (
  16.     os.path.normpath(os.path.join(DJANGO_DIR, 'static')),
  17. )
  18.  
  19. ALLOWED_HOSTS = ['127.0.0.1', 'localhost']
  20. SITE_DOMAIN = 'https://staging.api.psngr.co'
  21. DASHBOARD_BASE_URL = 'https://staging.psngr.co'  # No trailing slash!
  22.  
  23. INSTALLED_APPS += (
  24.     # 'debug_toolbar',
  25.     # 'debug_panel',
  26.  
  27.     'django_coverage',
  28.     'fixture_magic',
  29.     'corsheaders',
  30. )
  31.  
  32. INTERNAL_IPS = ['127.0.0.1', ]
  33. DEBUG_TOOLBAR_PATCH_SETTINGS = False
  34.  
  35. DISABLE_PANELS = set([
  36.     'debug_toolbar.panels.redirects.RedirectsPanel',
  37.     'debug_toolbar.panels.profiling.ProfilingPanel',
  38.     'debug_toolbar.panels.timer.TimerPanel',
  39. ]),
  40.  
  41. DATABASES = {
  42.     'default': {
  43.         'ENGINE': 'django.db.backends.postgresql_psycopg2',
  44.         'NAME': 'passenger',
  45.         'USER': 'passenger',
  46.         'PASSWORD': 'Ready4Launch!',
  47.         'HOST': '192.168.1.5',
  48.         'PORT': 5432,
  49.     }
  50. }
  51.  
  52. MIDDLEWARE_CLASSES += (
  53.     'corsheaders.middleware.CorsMiddleware',
  54.     'gopublic.settings.middleware.dev.RequestTimeLoggingMiddleware',
  55.     # 'debug_panel.middleware.DebugPanelMiddleware',
  56. )
  57.  
  58. CORS_ORIGIN_ALLOW_ALL = True
  59.  
  60. # CACHES = {
  61. #     'default': {
  62. #         'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
  63. #         'LOCATION': '127.0.0.1:11211',
  64. #     },
  65.  
  66. #     # this cache backend will be used by django-debug-panel
  67. #     'debug-panel': {
  68. #         'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
  69. #         'LOCATION': '/var/tmp/debug-panel-cache',
  70. #         'OPTIONS': {
  71. #             'MAX_ENTRIES': 200
  72. #         }
  73. #     }
  74. # }
  75.  
  76. # RAVEN_CONFIG = {
  77. #     'dsn': 'https://b0ee299352104d5a838f2cdc896aecb4:7c8dc5281f7a499abbfb93c4e4095dc0@staging.sentry.psngr.co/2',
  78. # }
  79.  
  80. CELERY_ALWAYS_EAGER = True
  81.  
  82. GOOGLE_DIRECTIONS_API_KEY = 'AIzaSyCCwYMq8aA7A6LSEFlRc26TCdqXmTMpAmM'
  83.  
  84. CUSTOM_DUMPS = {
  85.     'transit_trips': {  # Initiate dump with: ./manage.py custom_dump addon id
  86.         'primary': 'planner.Trip',  # This is our reference model.
  87.         'dependents': [  # These are the attributes/methods of the model that we wish to dump.
  88.             'transittrip',
  89.             'steps.all',
  90.             'pitstops.all',
  91.             'tracked_locations.all',
  92.             'tracked_motions.all'
  93.         ],
  94.         'order': (
  95.             'users.User',
  96.             'planner.Destination',
  97.             'planner.UserDestination',
  98.             'planner.Trip',
  99.             'planner.TransitTrip',
  100.             'planner.Step',
  101.             'planner.PitStop',
  102.             'planner.Location',
  103.             'planner.Motion'
  104.         ),
  105.         'order_cond': {
  106.         },
  107.     }
  108. }
  109.  
  110. # 17720 is Artis on Live
  111. # 133 is Artis on Stagiing
  112. # 2 is Rotem on Staging
  113. # 8 is Rotem on Live
  114. # 288 is Lior on Staging
  115. # 23 is Alin on Staging
  116. OVERRIDE_LOCAL_USER = 14
  117.  
  118. PAST_DUE_GRACE_PERIOD = 7
  119.  
  120. # EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  121. EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
  122. EMAIL_HOST = 'secure.emailsrvr.com'
  123. EMAIL_HOST_USER = 'mailer@psngr.co'
  124. EMAIL_HOST_PASSWORD = 'Ready4Launch!'
  125. EMAIL_PORT = 25
  126. EMAIL_USE_TLS = True
  127.  
  128. TAXAMO_ENVIRONMENT = 'artis'
  129.  
  130. AUTO_CHECKOUT_TIMER = 5  # Seconds
  131.  
  132. PUSH_NOTIFICATIONS_SETTINGS = {
  133.     "APNS_CERTIFICATE": os.path.normpath(os.path.join(BASE_DIR, 'cert', 'apn_dev.pem')),
  134.     "APNS_HOST": "gateway.sandbox.push.apple.com",
  135.     "GCM_API_KEY": "AIzaSyCYM1wf4aBbo56l4B8NpvHlpZn04yfpjcg"
  136. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement