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.0.tar.gz (6.5 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.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_meta_og-1.0.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for django_meta_og-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4059298a02a66bbb9aed3f68822dbc108eaee49acb7716f38e0e119fe60d9038
MD5 321c42bfadd1adcf385a7c8ce4fa0476
BLAKE2b-256 d8955cad1c0e73674548fff29746f13fecd7ec94d5e8924d5893538fb44d5b62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_meta_og-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for django_meta_og-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42f18270bf98bb6e942950a903ae9893d2188d2ca6f63278bb61baabf7f6e0a0
MD5 658f1fd38ad81e2246f8f1ae6d3cc4cc
BLAKE2b-256 84a5f6c82d3085f1c5b8d7d13c3f204f8156abfab18ec00621c208e95ce3dd4a

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