GithubHelp home page GithubHelp logo

isaac12x / django-easy-seo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bashu/django-easy-seo

0.0 1.0 0.0 591 KB

SEO fields for objects of any model registered in admin

License: GNU General Public License v3.0

Python 98.78% HTML 1.22%

django-easy-seo's Introduction

django-easy-seo

SEO fields for objects of any model registered in admin.

image

image

django-easy-seo

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.

django-easy-seo's People

Contributors

a-iv avatar bashu avatar elky avatar familqasimov avatar summerisgone avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.