Package: djangocms-shiny-app
djangocms-shiny-appis a Django app for addingR Shiny appsto a Django site with django CMS-specific features.Source code is available on GitHub atmfcovington/djangocms-shiny-app.InstallationConfigurationMigrationsUsageRevision HistoryInstallationPyPIpipinstalldjangocms-shiny-appGitHub (development branch)pipinstallgit+http://github.com/mfcovington/djangocms-shiny-app.git@developConfigurationInstall django CMS and start a project, if one doesn’t already exist.Unless you use this app as part ofdjangocms-lab-siteor plan to style the app from scratch, you will want to choose theUse Twitter Bootstrap Themeoption (when runningdjangocms) and then edit the resultingtemplates/base.html.This will add style that looks like Bootstrap 2. To use Bootstrap 3 styling, remove the following line for thebootstrap-theme.min.cssstylesheet fromtemplates/base.html:<linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.x.x/css/bootstrap-theme.min.css">The default menu settings for django CMS using Bootstrap will allow the user to access specific lab members via a dropdown menu, but will not give easy access to the summary page of all Shiny apps. To fix this do one of the following:Intemplates/base.html, change{% show_menu 0 1 100 100 "menu.html" %}to{% show_menu 0 0 100 100 "menu.html" %}, orUse a split button dropdowns by changing that line to{% show_menu 0 100 1 1 ‘_menu.html’ %}and populate_menu.htmlas done indjangocms-lab-site.Edit the project’ssettings.pyfile.Addcms_shinyand its dependencies toINSTALLED_APPS:INSTALLED_APPS=(# ...'cms_shiny','easy_thumbnails','filer','mptt',)Addeasy_thumbnailsettings:# For easy_thumbnails to support retina displays (recent MacBooks, iOS)THUMBNAIL_HIGH_RESOLUTION=TrueTHUMBNAIL_QUALITY=95THUMBNAIL_PROCESSORS=('easy_thumbnails.processors.colorspace','easy_thumbnails.processors.autocrop','filer.thumbnail_processors.scale_and_crop_with_subject_location','easy_thumbnails.processors.filters',)THUMBNAIL_PRESERVE_EXTENSIONS=('png','gif')THUMBNAIL_SUBDIR='versions'To accesscms_shinypages without using a django CMS AppHook, include URL configurations forcms_shinyin your project’surls.pyfile:ForDjango 1.7:urlpatterns=patterns('',# ...url(r'^shiny_apps/',include('cms_shiny.urls',namespace='cms_shiny')),# ...)ForDjango 1.8:urlpatterns=[# ...url(r'^shiny_apps/',include('cms_shiny.urls',namespace='cms_shiny')),# ...]MigrationsCreate and performcms_shinymigrations:pythonmanage.pymakemigrationscms_shinypythonmanage.pymigrateUsageStart the development server:pythonmanage.pyrunserverVisit:http://127.0.0.1:8000/Create a CMS page and then:Attach theShiny Apps AppunderAdvanced Settingsfor the page,ORInsert theShiny App Plugininto a placeholder field.Version 0.1.3Revision History0.1.3 2015-12-07Fix thumbnail image elongation in Chrome on screens >= 1200px wideRequire that ShinyApp name and slug are uniqueUpdate README with more complete and accurate instructionsPrepare for distribution via PyPI0.1.2 2015-04-21Replace line breaks in slide description field with appropriate HTML0.1.1 2015-04-19Improve django CMS integration and styling0.1.0 2015-04-16A Django app for adding R Shiny apps to a Django site with django CMS-specific features