Skip to main content

django-overcomingbias-pages: a web interface to Robin Hanson’s content

django-overcomingbias-pages is a standalone Django app which provides a web interface to Robin Hanson’s content.

Features

The main features are:

  • Scrape content from across the web (overcomingbias, YouTube, Spotify and more) via the admin site.

  • Search content with meilisearch.

  • Create sequences (series) of content and export them to PDF, epub, plaintext, or any other format supported by pandoc.

  • Persistent user accounts.

Configuration

To configure django-overcomingbias-pages, add the following to your settings:

# settings.py

# add required apps
INSTALLED_APPS = [
  # required for admin site / user accounts
  "django.contrib.admin",
  "django.contrib.auth",
  "django.contrib.contenttypes",
  "django.contrib.sessions",
  "django.contrib.messages",
  # for collecting static files
  "django.contrib.staticfiles",
  # django-overcomingbias-api
  "ordered_model",
  "obapi",
  # async tasks
  "huey.contrib.djhuey",
  # django-overcomingbias-pages
  "obpages",
  # custom form rendering
  "django.forms",
]

# Use the (custom) obpages user model
AUTH_USER_MODEL = "obpages.User"

Search is provided using meilisearch. To configure search, first set up a MeiliSearch instance, and then set up the following settings:

# settings.py

MEILISEARCH_CLIENT = {
    "url": "http://127.0.0.1:7700",
}
MEILISEARCH_INDEX = "content"

MEILISEARCH_CLIENT specifies the location of the MeiliSearch instance, while MEILISEARCH_INDEX controls which MeiliSearch index is used for search. Indexes can be created, updated and deleted via the admin site.

django-overcomingbias-pages uses Huey to run tasks asynchronously. To enable this feature, follow the Django/Huey instructions. A minimal configuration is shown below:

# settings.py

connection_pool = ConnectionPool(host="127.0.0.1", port=6379, db=0, max_connections=100)

# See docs for full list of settings
HUEY = {
    "huey_class": "huey.PriorityRedisHuey",
    "name": PROJECT_NAME,
    "connection": {
        "connection_pool": connection_pool,
        # see redis-py for more options
        # https://redis-py.readthedocs.io/en/latest/connections.html
        "read_timeout": 0,
    },
    "consumer": {
        "workers": 4,
        "worker_type": "thread",
    },
}

(Note that this requires (1) a Redis server running on localhost:6379 and (2) installing via pip install django-overcomingbias-pages[redis].)

Optionally, you can also configure Huey as your email backend.

Bugs/Requests

Please use the GitHub issue tracker to submit bugs or request features.

License

Copyright (c) 2022 Christopher McDonald

Distributed under the terms of the MIT license.

All overcomingbias posts are copyright the original authors.

Metadata

Release files for django-overcomingbias-pages 0.8.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 django-overcomingbias-pages 0.8.0
File Size Uploaded Provenance
django_overcomingbias_pages-0.8.0.tar.gz 71.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-overcomingbias-pages 0.8.0
File Interpreter ABI Platform
django_overcomingbias_pages-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 173.6 kB

Release files / django_overcomingbias_pages-0.8.0.tar.gz

Download URL django_overcomingbias_pages-0.8.0.tar.gz
Size 71.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c803200803a4ca6ac3e9a7ef6765244328fe917d27e79d787cfaf45b3858a300
BLAKE2b-256 checksum
How to use checksums
feee2cce73f1862baa8482fead40576ffb6924bf022fd074928e03cd71f8f221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / django_overcomingbias_pages-0.8.0-py3-none-any.whl

Download URL django_overcomingbias_pages-0.8.0-py3-none-any.whl
Size 101.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45f972bff54236c1f4a9d108da645a1550d63a46eb4cfb62c4e3c4162f906098
BLAKE2b-256 checksum
How to use checksums
6660f9a82d36baee5926ad89f9c91be6ce70c00d93b409125e1a47f021e08072
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for django-overcomingbias-pages 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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