Painless SEO app for Django framework
Project description
# Django PainlessSEO
## 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 for defining 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'),
('myapp', 'mymodel'),
)
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.
## 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 for defining 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'),
('myapp', 'mymodel'),
)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-painless-seo-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43fbce744f9e1f650f5d47a5587dbfe0bd2d5c6ebfe6913cd54e2113f81c3a15 |
|
MD5 | 954f632bb85a1272b81301e32f8c39de |
|
BLAKE2b-256 | fc89133e39db392183cfcec4d0fe3e1f560f9f9ba84e9d9912048199e88cb820 |