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.1.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.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_meta_og-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2131d68207c00530196059164133179e2e9b249455697ec163191ac6b0586fa7
MD5 654bd8134900bc02ed71e266ef24a377
BLAKE2b-256 1f04c2e209dc45f346021210231e4aa5cb72fef216b7c52fa9f3132b3b122db2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_meta_og-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05a160f405c2cd42d4604c526c31ed139af33e742c1beca5b3f3d8db682f90d6
MD5 7c37d6cd318f74827c68501ff8bd5d2a
BLAKE2b-256 9c8d3ebcf7dec9ee028cc8a3c7d4397acec115f5c8c9bbf00a8aeedcf7160770

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