Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions video_hub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@
AWS_MEDIA_CONVERT_ROLE = os.getenv('AWS_MEDIA_CONVERT_ROLE')
AWS_MEDIA_LIVE_ROLE = os.getenv('AWS_MEDIA_LIVE_ROLE')

print(f"""
print(
f"""
-- Settings : {os.getenv('DJANGO_SETTINGS_MODULE')} --
Debug: {DEBUG}
Database: {DATABASE_HOST}:{DATABASE_PORT}
Redis: {REDIS_URL}
MediaConvert Role: {AWS_MEDIA_CONVERT_ROLE}
MediaLive Role: {AWS_MEDIA_LIVE_ROLE}
""")
"""
)

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand All @@ -67,7 +69,6 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

# 3rd Party Apps
'debug_toolbar',
'related_admin',
Expand All @@ -79,7 +80,6 @@
'knox',
'drf_generators',
'django_filters',

# Local
'configuration',
'hub_auth',
Expand Down Expand Up @@ -223,7 +223,7 @@
'DEFAULT_FILTER_BACKENDS': (
'django_filters.rest_framework.DjangoFilterBackend',
'rest_framework.filters.SearchFilter',
'rest_framework.filters.OrderingFilter'
'rest_framework.filters.OrderingFilter',
),
}

Expand All @@ -234,7 +234,7 @@
'LOGIN_URL': 'rest_framework:login',
'LOGOUT_URL': 'rest_framework:logout',
'JSON_EDITOR': True,
'SHOW_REQUEST_HEADERS': True
'SHOW_REQUEST_HEADERS': True,
}

# Celery Configuration
Expand All @@ -256,7 +256,7 @@
'app.videoheadline.com',
'qhub.qualabs.com',
'hub.qualabs.com',
'localhost'
'localhost',
]

# Django Toolbar
Expand All @@ -267,5 +267,5 @@

DEBUG_TOOLBAR_CONFIG = {
'SHOW_COLLAPSED': True,
'SHOW_TOOLBAR_CALLBACK': lambda r: DEBUG
'SHOW_TOOLBAR_CALLBACK': lambda r: DEBUG,
}