Skip to main content

djangocms-lab-members is a Django app to extend django-lab-members with django CMS-specific features.

Source code is available on GitHub at mfcovington/djangocms-lab-members. Information about and source code for django-lab-members is available on GitHub at mfcovington/django-lab-members.

Installation

PyPI

pip install djangocms-lab-members

GitHub (development branch)

pip install git+http://github.com/mfcovington/djangocms-lab-members.git@develop

Configuration

  • Ignore instructions for django-lab-members, the non-django CMS app that this app extends.

  • Install django CMS and start a project, if one doesn’t already exist.

  • Unless you use this app as part of djangocms-lab-site or plan to style the app from scratch, you will want to choose the Use Twitter Bootstrap Theme option (when running djangocms) and then edit the resulting templates/base.html.

    • This will add style that looks like Bootstrap 2. To use Bootstrap 3 styling, remove the following line for the bootstrap-theme.min.css stylesheet from templates/base.html:

      <link rel="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 lab member. To fix this do one of the following:

      • In templates/base.html, change {% show_menu 0 1 100 100 "menu.html" %} to {% show_menu 0 0 100 100 "menu.html" %}, or

      • Use a split button dropdowns by changing that line to {% show_menu 0 100 1 1 ‘_menu.html’ %} and populate _menu.html as done in djangocms-lab-site.

  • Edit the project’s settings.py file.

    • Add cms_lab_members and its dependencies to your INSTALLED_APPS setting:

      INSTALLED_APPS = (
          # ...
          'cms_lab_members',
          'cms_lab_publications',
          'easy_thumbnails',
          'filer',
          'friendlytagloader',
          'lab_members',
          'taggit',
      )
    • Add easy_thumbnail settings:

      # For easy_thumbnails to support retina displays (recent MacBooks, iOS)
      THUMBNAIL_HIGH_RESOLUTION = True
      THUMBNAIL_QUALITY = 95
      THUMBNAIL_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'
    • Pre-populate placeholder content for research/personal interests and sidebar:

      # Pre-populate placeholder content
      CMS_PLACEHOLDER_CONF = {
          # ...
          'research interests': {
              'default_plugins': [
                  {
                      'plugin_type': 'TextPlugin',
                      'values': {
                          'body':"<p><em>[Enter 'Edit Mode' and double-click here to add your research interests.]</em></p>",
                      },
                  },
              ],
          },
          'personal interests': {
              'default_plugins': [
                  {
                      'plugin_type': 'TextPlugin',
                      'values': {
                          'body':"<p><em>[Enter 'Edit Mode' and double-click here to add your personal interests.]</em></p>",
                      },
                  },
              ],
          },
          'scientist sidebar': {
              'default_plugins': [
                  {
                      'plugin_type': 'TextPlugin',
                      'values': {
                          'body':"<p><em>[Enter 'Edit Mode' and double-click here to add sidebar content.]</em></p>",
                      },
                  },
              ],
          },
      }

Migrations

Create and perform migrations for cms_lab_members and its dependencies:

python manage.py makemigrations cms_lab_members
python manage.py makemigrations lab_members
python manage.py makemigrations cms_lab_publications
python manage.py migrate

Usage

  • Start the development server:

python manage.py runserver
  • Visit: http://127.0.0.1:8000/

  • Create a CMS page.

  • Attach the Lab Members App under Advanced Settings for the page.

Version 0.2.0

Revision History

0.2.0 2015-11-10

  • Add alumni fieldset to admin

    • This bumps djangocms-lab-members requirement to version 0.3.0

  • Add instructions to double-click placeholders when editing

  • Update README with more complete and accurate instructions

  • Prepare for distribution via PyPI

0.1.5 2015-05-08

  • Add Lab Alumni node to dropdown menu

  • Update README to pre-populate placeholder content via settings

  • Minor behind-the-scenes improvements

0.1.4 2015-05-01

  • Limit dropdown menu to current lab members

0.1.3 2015-04-21

  • Subclass PlaceholderAdminMixin from CMSScientistAdmin to provide admin support

0.1.2 2015-04-19

  • Group CMS plugin under Lab Plugins module

0.1.1 2015-04-13

  • Customize Scientist plugin style

0.1.0 2015-04-10

  • A Django app to extend django-lab-members with django CMS-specific features

Release files for djangocms-lab-members 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangocms-lab-members 0.2.0
File Size Uploaded
djangocms-lab-members-0.2.0.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djangocms-lab-members 0.2.0
File Interpreter ABI Platform
djangocms_lab_members-0.2.0-py32-none-any.whl Python 3.2 none any Details

Total release size: 19.2 kB

Release files / djangocms-lab-members-0.2.0.tar.gz

Download URL djangocms-lab-members-0.2.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
555ab8e1c0a2355be9c44c826262ed6352460e9030e8aeb68a2015a1468eae85
BLAKE2b-256 checksum
How to use checksums
87a8c658c1a85838ac93fb6022d2da8944614c8764858a5622390dfd80552c59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / djangocms_lab_members-0.2.0-py32-none-any.whl

Download URL djangocms_lab_members-0.2.0-py32-none-any.whl
Size 11.5 kB
Tags Python 3.2
SHA-256 checksum
How to use checksums
334873e1e7dc64489282f9d359711ff24db128e9dedaa4961d0fbce53be4a262
BLAKE2b-256 checksum
How to use checksums
97dd48c294e130f891f3264ab0f3d6ebe01e956571ba2938ff48e24539b4e5eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page