cmsplugin-youtube / cmsplugin_youtube / settings.py

"""
Convenience module for access of custom youtube application settings,
which enforces default settings when the main settings module does not
contain the appropriate settings.
"""
from django.conf import settings

# Autoplay
CMS_YOUTUBE_DEFAULT_AUTOPLAY = getattr(settings,
                                       'CMS_YOUTUBE_DEFAULT_AUTOPLAY', False)

# Width & Height
CMS_YOUTUBE_DEFAULT_WIDTH = getattr(settings, 'CMS_YOUTUBE_DEFAULT_WIDTH', 425)
CMS_YOUTUBE_DEFAULT_HEIGHT = getattr(settings, 'CMS_YOUTUBE_DEFAULT_HEIGHT', 
                                     344)

# Border
CMS_YOUTUBE_DEFAULT_BORDER = getattr(settings, 'CMS_YOUTUBE_DEFAULT_BORDER',
                                     False)

# Full Screen
CMS_YOUTUBE_DEFAULT_FULLSCREEN = getattr(settings,
                                         'CMS_YOUTUBE_DEFAULT_FULLSCREEN',
                                         True)

# Loop
CMS_YOUTUBE_DEFAULT_LOOP = getattr(settings, 'CMS_YOUTUBE_DEFAULT_LOOP', False)

# Display Related Videos
CMS_YOUTUBE_DEFAULT_RELATED = getattr(settings, 'CMS_YOUTUBE_DEFAULT_RELATED',
                                      False)

# High Quality
CMS_YOUTUBE_DEFAULT_HIGHQUALITY = getattr(settings,
                                          'CMS_YOUTUBE_DEFAULT_HIGHQUALITY',
                                          False)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.