Skip to main content

Django Library To Use Meta Tags And Schema Structure In Any URL Path

Project description

django-meta-pages

Django Library To Use Meta Tags And Schema Structure In Any URL Path

Step 1 Installation

first need install with pip

pip install django-meta-pages

Step 2 settings.py

First Add To INSTALLED_APPS

Next Step

Add To Templates context_processors

INSTALLED_APPS = [
    ...
    'meta_pages',
    ...
]

TEMPLATES = [
    {
      ...
        "OPTIONS": {
            "context_processors": [
                ...
                "meta_pages.context_processors.schema",
                "meta_pages.context_processors.meta",

            ],
        },
    },
]

Step 3

Include Meta Template To Your Base Template

<head>
{% include 'meta_pages/meta.html' with meta=meta %}
</head>

Step 4

python manage.py migrate

Done!

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-pages-0.0.1.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file django-meta-pages-0.0.1.tar.gz.

File metadata

  • Download URL: django-meta-pages-0.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.3

File hashes

Hashes for django-meta-pages-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1d0d1d90db0efb87d2351d2c1c23209f43fee26c06998e0bd1c03ca8ebfb6754
MD5 2e6032fd2861ada5f86434a07d01d87d
BLAKE2b-256 35bea89a5a00f2cb8f0977a1134831e620443684068c9d8e01602bb153cbf973

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