Skip to main content

Meeting Guide compatible Python package for Django's Wagtail CMS: meetings, locations, and API.

Project description

Wagtail Meeting Guide

Meeting Guide compatible Python package for the Wagtail CMS on the Django web framework.

This is pre-alpha software, in active development!

Wagtail Meeting Guide requires both Wagtail 2.0 and Django 2.0.

Pre-Requisites

Using 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, I would recommend going through both the Django and Wagtail tutorials before trying to use this package.

A Google Geocode API key is also required.

Installation to Your Django Project

  • Install with the command pip install wagtail-meeting-guide

  • Add meeting_guide, mptt, and wagtailgeowidget to your INSTALLED_APPS.

  • Add the following settings, including your Google Geocode API key:

  • Run migrations: python manage.py migrate meeting_guide

  • Load Meeting Guide's meeting types: python manage.py loaddata meeting_guide_types.json

Configuration

  • Enter the Wagtail CMS, and go to Settings, Meeting Types.
  • Enter your Intergroup's code for each of the Meeting Guide Code Types
  • Go to Regions and enter your regions; regions can have a parent, so you can nest them. For example, you could have Philadelphia County as a region with no parent, and Center City as a sub-region with Philadelphia County as the parent.

Including the Meeting Guide in Your Django Template

The API end point for the locations and meetings you create in Wagtail has to be added to your site's root urls.py. Add a line like this:

urlpatterns = [
    ...
    path("meeting-guide/", 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 %}

Downloading Meetings as a PDF

To download the meeting list as a PDF, you must have wkhtmltopdf installed on your system. The end point for the download is meeting-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 Notes

0.1

Maintainer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wagtail-meeting_guide-0.1.dev10.tar.gz (537.1 kB view details)

Uploaded Source

Built Distribution

wagtail_meeting_guide-0.1.dev10-py3-none-any.whl (546.6 kB view details)

Uploaded Python 3

File details

Details for the file wagtail-meeting_guide-0.1.dev10.tar.gz.

File metadata

  • Download URL: wagtail-meeting_guide-0.1.dev10.tar.gz
  • Upload date:
  • Size: 537.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for wagtail-meeting_guide-0.1.dev10.tar.gz
Algorithm Hash digest
SHA256 1acfdf117b7be24c0409d8a80de6f57ad539ab60c029425303fd8e4e8cb26a60
MD5 089489eb37790b0ba54ad126d1c1f6f5
BLAKE2b-256 b08fc35578aaca3e009061412c41eb452ce39987d598719b226cace00fb4fca6

See more details on using hashes here.

Provenance

File details

Details for the file wagtail_meeting_guide-0.1.dev10-py3-none-any.whl.

File metadata

  • Download URL: wagtail_meeting_guide-0.1.dev10-py3-none-any.whl
  • Upload date:
  • Size: 546.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for wagtail_meeting_guide-0.1.dev10-py3-none-any.whl
Algorithm Hash digest
SHA256 6373c7bc32d115c98c27ada0551dbd85473344ae5b0d6c1e8e4df8df4560e2db
MD5 2e196341c467910f50d6c2607b0bca97
BLAKE2b-256 23830695b4a07d0ceb92a6104c74abd9e68585f7f4c74adc445a2d8bf9328eb4

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page