Skip to main content

A framework for managing SEO metadata in Django.

Project description

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

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-seo.readthedocs.org/.

History

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

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-seo2-1.0.0.tar.gz (198.9 kB view details)

Uploaded Source

Built Distribution

django_seo2-1.0.0-py2.py3-none-any.whl (25.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-seo2-1.0.0.tar.gz.

File metadata

  • Download URL: django-seo2-1.0.0.tar.gz
  • Upload date:
  • Size: 198.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-seo2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ca9aaf87e61e70fc83bd393b646bff68f8f62b3bb158e95f657bf98ffa14e19a
MD5 2f0c240841f175edfccf6685ed26ee14
BLAKE2b-256 51461dccabdda5bd9087f73f31a54d58b2e6e891abcdc3a01af0efe197e68558

See more details on using hashes here.

File details

Details for the file django_seo2-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_seo2-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2e7ab29f4c593d8b61b0b383140ae96246654a479bb5115f4c8a4cbdec4f0ac7
MD5 5a5d7b6de0cf11861f4415af66a8d1ea
BLAKE2b-256 830078919b9cfb02088b36ab471a714c226704e89f18380c8b97c223580bd384

See more details on using hashes here.

Supported by

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