Adds generic SEO fields for objects in your site
Project description
SEO fields for objects of any model registered in admin.
Setup
Either clone this repository into your project, or install with pip install django-easy-seo
You’ll need to add seo as a LAST item to INSTALLED_APPS in your project’s settings.py file :
INSTALLED_APPS = (
...
'seo', # must be last in a list
)
Then run ./manage.py syncdb to create the required database tables
Configuration
There is only one mandatory configuration option you need to set in your settings.py :
# Override / extend ModelAdmin classes for a given Models
SEO_FOR_MODELS = [
'<app_name>.models.<ModelName>',
]
Usage
First of all, load the seo_tags in every template where you want to use it :
{% load seo_tags %}
Use :
{% seo '<title|keywords|description>' for <object> %}
or :
{% seo '<title|keywords|description>' for <object> as <variable> %}
{{ variable }}
Please see example application. This application is used to manually test the functionalities of this package. This also serves as a good example.
You need only Django 1.4 or above to run that. It might run on older versions but that is not tested.
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
Built Distribution
File details
Details for the file django-easy-seo-0.4.7.tar.gz
.
File metadata
- Download URL: django-easy-seo-0.4.7.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b4a397f86948fd1c67d24664de23c174ff7e0c0102e64d241667fc1c3d74fb |
|
MD5 | 543fa36e77cd80db15f137ec418c1073 |
|
BLAKE2b-256 | d2770bfbb44ffc695f45e50029dc9a492ea9e163b008c139c203e6b67f9b889e |
File details
Details for the file django_easy_seo-0.4.7-py2.py3-none-any.whl
.
File metadata
- Download URL: django_easy_seo-0.4.7-py2.py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaec3fc31c574dba1c140d7d5cbfb5cffdb02ff52628c50324c60f34d166eef6 |
|
MD5 | 7ed68f6418324eb5dcf6b283d45af954 |
|
BLAKE2b-256 | 3f34b288defaa7f55c5c4cc9587d69d61b36ba7a1894c892594feaca9e9f47b7 |