Skip to main content

Painless SEO app for Django framework

Project description

# Django PainlessSEO

[![Code Climate](https://codeclimate.com/github/Glamping-Hub/django-painless-seo/badges/gpa.svg)](https://codeclimate.com/github/Glamping-Hub/django-painless-seo)

A painless way to add SEO information to your Django site.

## Features

This app provides two ways of adding SEO metadata to your django site:

- Absolute paths
- Model instances

It's fully integrated with the admin site including inline forms for models.
It also includes support for multiple languages and localized URLs.

## Requirements

Django >= 1.5.0

## Installation

The Git repository can be cloned with this command:

git clone https://github.com/Glamping-Hub/django-painless-seo.git

The `painlessseo` package included in the distribution should be placed on the
`PYTHONPATH`. Add `painlessseo` to the `INSTALLED_APPS` in your *settings.py*.
Run `syncdb` command to create the needed tables.

## Settings

PainlessSEO uses two configuration variables in order to define the default
information that will be displayed if the URL has no SEO metadata related. You
have to add them to your *settings.py*:

SEO_DEFAULT_TITLE = 'Lorem ipsum title'
SEO_DEFAULT_DESCRIPTION = 'Lorem ipsum description'

### Registering Models

To create synced SEO metadata for model instances you have to define the
`SEO_MODELS` variable in your *settings.py* like this:

SEO_MODELS = (
('myapp', 'mymodel'),
('anotherapp', 'anothermodel'),
)

After registering the models, you can add the inline form to the admin instance
for each model:

from painlessseo.admin import SeoMetadataInline

class MyModelAdmin(admin.ModelAdmin):
inlines = [SeoMetadataInline, ]

Now every time you save a model instance through the admin site, the SEO
metadata will be updated automatically.

## SEO Output

As simple as loading the `seo` template library and using the `get_seo`
template tag like this:

{% load seo %}

<head>
{% get_seo %}
</head>

## Notes

[Why PainlessSEO does not include keywords meta tag](http://googlewebmastercentral.blogspot.in/2009/09/google-does-not-use-keywords-meta-tag.html).

## Legal Stuff

This software is licensed under the terms of the BSD 3-clause license. You can
find the whole text of the license in the LICENSE file.


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-painless-seo-0.1.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

django_painless_seo-0.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file django-painless-seo-0.1.1.tar.gz.

File metadata

File hashes

Hashes for django-painless-seo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6c0e124a0302d5a3b826b78fccbfbb1dac3c3d09d229e38b3b40b13fe0eaf3e0
MD5 678b7bb98163cebbcc9f3249a82f1287
BLAKE2b-256 075b7551a73927c6c954ff8256c5fce0082524ac78e1bc2ed90b3aec74df01eb

See more details on using hashes here.

File details

Details for the file django_painless_seo-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_painless_seo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1164aa0687ad71be0361ea6f50727c3e4c26b0c69d155d568d026e786d5bd62f
MD5 dbc45665c25f0c2a6151d64cdb3a2fc0
BLAKE2b-256 f7d6592e5c0565f8c4ccddf86319da3753b7a0e1696323b04c373ca6a68b8e73

See more details on using hashes here.

Supported by

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