Skip to main content

django-seo2

https://travis-ci.org/romansalin/django-seo2.svg?branch=master https://coveralls.io/repos/romansalin/django-seo2/badge.svg?branch=master Documentation Status

Overview

This is a set of powerful and flexible SEO tools for Django. It allows you to associate metadata with:

  • absolute paths

  • model instances

  • model classes

  • views

Metadata can be edited in the Django Admin in a centralised place, but also alongside any associated models.

This is however a framework, not an app. To use this library, you need to define the metadata you want and add the output to your templates. Everything else (retrieval, formatting, escaping, caching) is handled for you. Therefore, you have complete control over the data you store.

As requirements change, it may become necessary to add new metadata fields. Having the metadata definition confined to a single, short class means that it is easy to update.

Requirements

  • Python (2.7, 3.3, 3.4, 3.5)

  • Django (1.7, 1.8, 1.9)

Example

Here is an example of a definition:

from djangoseo import seo


class BasicMetadata(seo.Metadata):
    title = seo.Tag(max_length=68, head=True)
    keywords = seo.KeywordTag()
    description = seo.MetaTag(max_length=155)
    heading = seo.Tag(name="h1")
    subheading = seo.Tag(name="h2")
    extra = seo.Raw(head=True)

    # Adding some fields for facebook (opengraph)
    og_title = seo.MetaTag(name="og:title",
                           populate_from="title",
                           verbose_name="facebook title")

    og_description = seo.MetaTag(name="og:description",
                                 populate_from="description",
                                 verbose_name='facebook description')

As you can see it is very flexible, but there is much more than this simple example.

The full documentation can be read online at http://django-seo2.readthedocs.org/.

History

This is a fork of django-seo, which is no longer maintained.

Metadata

Release files for django-seo2 1.0.1

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-seo2 1.0.1
File Size Uploaded Provenance
django-seo2-1.0.1.tar.gz 597.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-seo2 1.0.1
File Interpreter ABI Platform
django_seo2-1.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 623.3 kB

Release files / django-seo2-1.0.1.tar.gz

Download URL django-seo2-1.0.1.tar.gz
Size 597.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f054ef18152de1a2a3775f9e68d1303315af8b9c37a4a35d6b23800da3f5bf09
BLAKE2b-256 checksum
How to use checksums
f8642476913e639071428e34b5925790d7f92e92761bb8ccbced8b6fd0cf6259
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_seo2-1.0.1-py2.py3-none-any.whl

Download URL django_seo2-1.0.1-py2.py3-none-any.whl
Size 25.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
63dba85a4464ab9212632bb31dc6acc7feef2a0caafdb7267fa055c81c3daca5
BLAKE2b-256 checksum
How to use checksums
a6b4c9c0bc2749b31e858218d63076353bb959f71a8dbcc229399882be7ddb87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-seo2 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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