Skip to content
Snippets Groups Projects
Select Git revision
  • 17a2a672965715b28d7862f13ed72550cee456b5
  • master default protected
  • django-v4-compat
  • GibbsConsulting-update-contributors
  • GibbsConsulting-ver1.4.2
  • v2.1.3
  • v2.1.2
  • v2.1.1
  • v2.1.0
  • v2.0.0
  • v1.7.2
  • v1.7.1
  • v1.7.0
  • v1.6.6
  • v1.6.5
  • v1.6.4
  • v1.6.3
  • v1.6.2
  • v1.6.1
  • v1.6.0
  • v1.5.0
  • v1.4.2
  • v1.4.1
  • v1.4.0
  • v1.3.1
25 results

bootstrap.rst

  • user avatar
    Mark Gibbs authored and GitHub committed
    * Add checklist for bootstrap installation
    
    * Increment version to 1.4.1
    
    Co-authored-by: default avatarMark Gibbs <mark@gibbs.consulting>
    17a2a672
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    bootstrap.rst 1.25 KiB

    Using Bootstrap

    The django-plotly-dash package is frequently used with the dash-bootstrap-components package, and this requires a number of steps to set up correctly.

    This section is a checkist of the required confiuration steps.

    • install the package as descrbed in the :ref:`installation <installation>` section
    • add the various settings in the :ref:`configuration <configuration>` section, particularly the STATICFILES_FINDERS, PLOTLY_COMPONENTS and MIDDLEWARE ones.
    • install django-bootstrap 4 with pip install django-bootstrap4 and add bootstrap4 to INSTALLED_APPS in the project's settings.py file
    • make sure that the settings for serving static files are set correctly, particularly STATIC_ROOT, as described in the Django documentation
    • use the prepare_demo script or perform the equivalent steps, paricularly the migrate and collectstatic steps
    • make sure add_bootstrap_links=True is set for apps using dash-bootstrap-components
    • the Django documentation deployment section covers setting up the serving of static files for production