Package: django-lab-members
django-lab-membersis a Django app to display lab personnel and information about them. This app can be extended bydjangocms-lab-membersfor use with django CMS.Source code is available on GitHub atmfcovington/django-lab-members. Information about and source code fordjangocms-lab-membersis available on GitHub atmfcovington/djangocms-lab-members.InstallationConfigurationMigrationsUsageRevision HistoryInstallationPyPIpipinstalldjango-lab-membersGitHub (development branch)pipinstallgit+http://github.com/mfcovington/django-lab-members.git@developConfigurationEdit the project’ssettings.pyfile.Addlab_membersand its dependencies to yourINSTALLED_APPSsetting:INSTALLED_APPS=(# ...'lab_members','easy_thumbnails','filer','mptt','sekizai','friendlytagloader',)Specify your media settings, if not already specified:MEDIA_URL='/media/'MEDIA_ROOT=os.path.join(BASE_DIR,'media')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'Addsekizaisettings:ForDjango 1.7, addsekizai.context_processors.sekizaitoTEMPLATE_CONTEXT_PROCESSORS:fromdjango.conf.global_settingsimportTEMPLATE_CONTEXT_PROCESSORSTEMPLATE_CONTEXT_PROCESSORS+=('sekizai.context_processors.sekizai',)ForDjango 1.8, addsekizai.context_processors.sekizaitoTEMPLATES:TEMPLATES=[{# ...'OPTIONS':{'context_processors':[# ...'sekizai.context_processors.sekizai',],},},]Include URL configurations forlab_membersand media (ifDEBUG == True) in your project’surls.pyfile:ForDjango 1.7:# ...fromdjango.confimportsettingsurlpatterns=patterns('',# ...url(r'^lab_members/',include('lab_members.urls',namespace='lab_members')),# ...)ifsettings.DEBUG:urlpatterns+=patterns('',(r'^media/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.MEDIA_ROOT}))ForDjango 1.8:# ...fromdjango.confimportsettingsfromdjango.conf.urls.staticimportstaticurlpatterns=[# ...url(r'^lab_members/',include('lab_members.urls',namespace='lab_members')),# ...]ifsettings.DEBUG:urlpatterns+=static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)MigrationsCreate and perform migrations forlab_membersand its dependencies:pythonmanage.pymakemigrationslab_memberspythonmanage.pymigrateUsageStart the development server:pythonmanage.pyrunserverLogin and add a scientist:http://localhost:8000/admin/lab_members/scientist/add/Visit:http://127.0.0.1:8000/lab_members/Version 0.3.0Revision History0.3.0 2015-11-10Add current title and institution for alumniAllow multiple co-advisors for an Education/Employment recordMove Scientist’s research interests before personal interestsPrevent deletion of an object in a one-to-many relationship with another objectException: deleting a scientist will delete related education/employment recordsOverride OS X’s hidden scrollbars for Employment/Education tables on narrow screensImprove related names for FKs and many-to-many fieldsFix Scientist’s website linkFix disappearing sidebar placeholder when CMS is placed in ‘Structure’ modeResolve Django 1.8 warningsAdd usage instructions for Django 1.8 compatibilityPrepare for distribution via PyPI0.2.5 2015-05-22Add Scientist publications placeholderAdd Admin models for Education/Employment RecordsFix ordering of Education/Employment Records0.2.4 2015-05-08Display Scientist only if visible == TruePrevent higher resolution photos from being wider than 300pxFix linking to Lab Alumni subsectionValidate that Employment/Education ‘Year Started’ <= ‘Year Ended’Open advisor’s link in a new windowMake alumni link more prominentAdd website field for Scientist & display below email addressMove sidebar to modal for smaller screensMinor behind-the-scenes improvements0.2.3 2015-04-29Make profile thumbnails equal heights (within row) to account for long namesUsedjango-friendly-tag-loaderto load and use django CMS tags if they are availableUse 2x resolution photos (for retina, etc. displays)0.2.2 2015-04-21Add Scientist sidebar placeholder if CMS for medium+ screensImprove styling0.2.1 2015-04-19Improve styling0.2.0 2015-04-10Allow integration with django CMS usingdjangocms-lab-members0.1.0 2015-04-08A Django app to display lab personnel and information about them