Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from .base import *
- DEBUG = True
- TEMPLATE_DEBUG = DEBUG
- MEDIA_FROM_TESTSERVER = True
- TESTING = False
- DJANGO_DIR = os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))
- TEMPLATE_DIRS = (
- os.path.join(DJANGO_DIR, 'templates'),
- )
- STATICFILES_DIRS = (
- os.path.normpath(os.path.join(DJANGO_DIR, 'static')),
- )
- ALLOWED_HOSTS = ['127.0.0.1', 'localhost']
- SITE_DOMAIN = 'https://staging.api.psngr.co'
- DASHBOARD_BASE_URL = 'https://staging.psngr.co' # No trailing slash!
- INSTALLED_APPS += (
- # 'debug_toolbar',
- # 'debug_panel',
- 'django_coverage',
- 'fixture_magic',
- 'corsheaders',
- )
- INTERNAL_IPS = ['127.0.0.1', ]
- DEBUG_TOOLBAR_PATCH_SETTINGS = False
- DISABLE_PANELS = set([
- 'debug_toolbar.panels.redirects.RedirectsPanel',
- 'debug_toolbar.panels.profiling.ProfilingPanel',
- 'debug_toolbar.panels.timer.TimerPanel',
- ]),
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'NAME': 'passenger',
- 'USER': 'passenger',
- 'PASSWORD': 'Ready4Launch!',
- 'HOST': '192.168.1.5',
- 'PORT': 5432,
- }
- }
- MIDDLEWARE_CLASSES += (
- 'corsheaders.middleware.CorsMiddleware',
- 'gopublic.settings.middleware.dev.RequestTimeLoggingMiddleware',
- # 'debug_panel.middleware.DebugPanelMiddleware',
- )
- CORS_ORIGIN_ALLOW_ALL = True
- # CACHES = {
- # 'default': {
- # 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
- # 'LOCATION': '127.0.0.1:11211',
- # },
- # # this cache backend will be used by django-debug-panel
- # 'debug-panel': {
- # 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
- # 'LOCATION': '/var/tmp/debug-panel-cache',
- # 'OPTIONS': {
- # 'MAX_ENTRIES': 200
- # }
- # }
- # }
- # RAVEN_CONFIG = {
- # 'dsn': 'https://b0ee299352104d5a838f2cdc896aecb4:7c8dc5281f7a499abbfb93c4e4095dc0@staging.sentry.psngr.co/2',
- # }
- CELERY_ALWAYS_EAGER = True
- GOOGLE_DIRECTIONS_API_KEY = 'AIzaSyCCwYMq8aA7A6LSEFlRc26TCdqXmTMpAmM'
- CUSTOM_DUMPS = {
- 'transit_trips': { # Initiate dump with: ./manage.py custom_dump addon id
- 'primary': 'planner.Trip', # This is our reference model.
- 'dependents': [ # These are the attributes/methods of the model that we wish to dump.
- 'transittrip',
- 'steps.all',
- 'pitstops.all',
- 'tracked_locations.all',
- 'tracked_motions.all'
- ],
- 'order': (
- 'users.User',
- 'planner.Destination',
- 'planner.UserDestination',
- 'planner.Trip',
- 'planner.TransitTrip',
- 'planner.Step',
- 'planner.PitStop',
- 'planner.Location',
- 'planner.Motion'
- ),
- 'order_cond': {
- },
- }
- }
- # 17720 is Artis on Live
- # 133 is Artis on Stagiing
- # 2 is Rotem on Staging
- # 8 is Rotem on Live
- # 288 is Lior on Staging
- # 23 is Alin on Staging
- OVERRIDE_LOCAL_USER = 14
- PAST_DUE_GRACE_PERIOD = 7
- # EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
- EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
- EMAIL_HOST = 'secure.emailsrvr.com'
- EMAIL_HOST_USER = 'mailer@psngr.co'
- EMAIL_HOST_PASSWORD = 'Ready4Launch!'
- EMAIL_PORT = 25
- EMAIL_USE_TLS = True
- TAXAMO_ENVIRONMENT = 'artis'
- AUTO_CHECKOUT_TIMER = 5 # Seconds
- PUSH_NOTIFICATIONS_SETTINGS = {
- "APNS_CERTIFICATE": os.path.normpath(os.path.join(BASE_DIR, 'cert', 'apn_dev.pem')),
- "APNS_HOST": "gateway.sandbox.push.apple.com",
- "GCM_API_KEY": "AIzaSyCYM1wf4aBbo56l4B8NpvHlpZn04yfpjcg"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement