A live online event where Daniel Feldroy, co-author of Two Scoops of Django, dives into Django and Python best practices. Attendees can ask questions and are encouraged to do so.
If you are loving TailwindCSS then check out their new plugin which you can use to add beautiful typographic defaults to any vanilla HTML you don't control (like HTML rendered from Markdown, or pulled from a CMS).
A plugin that provides a set of prose classes you can use to add beautiful typographic defaults to any vanilla HTML you don't control, like HTML rendered from Markdown, or pulled from a CMS.
Wagtail Open Graph Image Generator will assist you in automatically creating Open Graph images for your pages.
wagtail-opengraph-image-generator
Wagtail Open Graph Image Generator will assist you in automatically creating Open Graph images for your pages.
There are a handful of configuration options to popuplate images with your page's content
Besides the title, there are options to provide a static company logo, subtitle, background image and page logo in the SVG format. While the resulting image will be a little bit opinionated, the defaults should work just fine in most cases.
The final image will be saved in the PNG format in a configurable Wagtail collection. It then can be used in your templates and code.
Features
Automatic creation of Open Graph protocol compatible images
Live preview and configuration in a seperate tab in the Edit and Create views
Several dynamic fields that can be configured to supply content for your generated image
Transparently load variables from environment or JSON/YAML/TOML file.
Goodconf
A thin wrapper over Pydantic's settings management
Allows you to define configuration variables and load them from environment or JSON/YAML
file. Also generates initial configuration files and documentation for your
defined configuration.
Installation
pip install goodconf or pip install goodconf[yaml] /
pip install goodconf[toml] if parsing/generating YAML/TOML
files is required.
Quick Start
Let's use configurable Django settings as an example.
First, create a conf.py file in your project's directory, next to
settings.py:
importbase64importosfromgoodconfimportGoodConf, FieldfrompydanticimportPostgresDsnclassAppConfig(GoodConf):
"Configuration for My App"DEBUG: boolDATABASE_URL: PostgresDsn="postgres://localhost:5432/mydb"SECRET_KEY: str=Field(
initial=lambda: base64.b64encode(os.urandom(60)).decode(),
description="Used for cryptographic signing. ""https://docs.djangoproject.com/en/2.0/ref/settings/#secret-key")
classConfig:
default_files= ["/etc/myproject/myproject.yaml", "myproject.yaml"]
config=AppConfig