Package: wagtail-meeting-guide
Wagtail Meeting GuideA Python package compatible with theMeeting Guide Appforthe Wagtail CMSon theDjango web framework.Pre-RequisitesUsing this package requires both the Wagtail CMS and Django. Wagtail and Django are fantastic for running your website, but require a developer. If you are new to Django, I would recommend going through both theDjangoandWagtailtutorials before trying to use this package.A Google Geocode API key and MapBox API key are also required. The Google API key is only used in the content management system (typically by administrators), so the free tier should be fine to use.Installation to Your Django ProjectInstall with the commandpip install wagtail-meeting-guideAddmeeting_guide,mptt, andwagtailgeowidgetto yourINSTALLED_APPS.Add the following settings:WAGTAIL_SITE_NAME(MyCity Intergroup): the name of your website, typically the intergroup.BASE_URL(https://AAMyCity.org): the base URL or the website.Run migrations:python manage.py migrate meeting_guideLoad Meeting Guide's meeting types:python manage.py loaddata meeting_guide_types.jsonConfigurationEnter the Wagtail CMS, and go toSettings,Meeting Types.Enter your Intergroup's code for each of the Meeting Guide Code TypesGo toRegionsand enter your regions; regions can have a parent, so you can nest them. For example, you could havePhiladelphia Countyas a region with no parent, andCenter Cityas a sub-region withPhiladelphia Countyas the parent.Including the Meeting Guide in Your Django TemplateThe API end point for the locations and meetings you create in Wagtail has to be added to your site's rooturls.py. Add a line like this:urlpatterns=[...path("meetings/",include("meeting_guide.urls")),...]You can include the Meeting Guide within any Django Template. Here is an example:{% extends "base.html" %}

{% load meeting_guide %}

{% block content %}
    {% meeting_guide %}
{% endblock content %}More SettingsYou can modify theMEETING_GUIDEsetting in Django's settings to change the defaults inhttps://github.com/code4recovery/tsml-ui#advanced-customization. Here is an example settings block:# Google Maps, Used by the Wagtail Content Management SystemGOOGLE_MAPS_V3_APIKEY="FAKEoyCFYHEYHUoBLAHBLAHYbRqjBafhI3FAKE"GOOGLE_MAPS_API_BOUNDS="39.732679,-77.821655|41.553879,-73.896790"GEO_WIDGET_DEFAULT_LOCATION={"lat":40.0024137,"lng":-75.258117}# The Philadelphia areaGEO_WIDGET_ZOOM=14# Key for MapBox, used by the front end served to users.MAPBOX_KEY="YourMaxBoxKeyGoesHere"# Example of sending settings to tsml-uiMEETING_GUIDE={"flags":["X","TC"],"show":{"listButtons":True,},"map":{"key":MAPBOX_KEY,},"strings":{"en":{"types":{"X":"Wheelchair","TC":"Temp Closed",},},},"feedback_emails":"manager@your-integroup.org",}Downloading Meetings as a PDFTo download the meeting list as a PDF, you musthave wkhtmltopdf installed on your system. The end point for the download ismeeting-guide/download/.You can change the print and style options in your Django settings. The options are a Python dictionary while the styles are a string containing CSS:WAGTAIL_MEETING_GUIDE_PRINT_OPTIONS={'page-width':'100mm','page-height':'120mm','margin-top':'10mm','margin-right':'10mm','margin-bottom':'10mm','margin-left':'10mm','header-left':'[section]: [subsection]','encoding':"UTF-8",'no-outline':None}WAGTAIL_MEETING_GUIDE_PRINT_STYLES="""html, td {font-family: Arial, Helvetica, sans-serif;font-size: 9px;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;color: red;}body {margin:0;}h1, .h1 {font-size: 24px;}"""Release Noteshttps://github.com/code4recovery/wagtail-meeting-guide/releases/MaintainerTimothy Allen (https://github.com/FlipperPA/)