Skip to main content

Django HTML Meta tags for OpenGraph.

Project description

Django Meta OG

HTML Meta tags OpenGraph for Django. The project uses the project DjangoCMS Meta OG project.

Install

pip install django-meta-og

Add into settings.py:

INSTALLED_APPS = [
    "django_meta_og",
    ...
]

TEMPLATES  = [
    {"OPTIONS": {
            "context_processors": [
                "django_meta_og.context_processors.meta",
                ...
            ]
        }
    }
]

Add into the templates:

{% load django_meta_og %}
{% django_meta_og_prefix as og_prefix %}
<head{% if og_prefix %} prefix="{{ og_prefix }}"{% endif %}>
    {% include "django_meta_og/header_meta.html" %}

The result can be:

<head prefix="og: https://ogp.me/ns#">
    <meta property="og:type" content="website" />
    <meta property="og:title" content="The Title" />
    ...
</head>

License

BSD License

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

django_meta_og-1.0.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_meta_og-1.0.3-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file django_meta_og-1.0.3.tar.gz.

File metadata

  • Download URL: django_meta_og-1.0.3.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for django_meta_og-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e87eaf21e50702de69e0b68b9b994244c7ad6c09d8dd8dfda1fbebd5e057f0d3
MD5 6a6038e135fb2dba4c3e964399ce4a11
BLAKE2b-256 2cdfd6601aa75fff93a15b744c93e2537ae9fb682099376807955e85116e92a5

See more details on using hashes here.

File details

Details for the file django_meta_og-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: django_meta_og-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for django_meta_og-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1f6e941e5a92e0bcbaf9a569ffd7db28387bafb31737551bf5387e9abfa36faa
MD5 a0003ddb710f349b67a73d9cf5f10e88
BLAKE2b-256 225a162759bdeb2c2f14a34748661d7f03fd8859868cf3d88e553ce635dce1b6

See more details on using hashes here.

Supported by

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