Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple Django app to manage basic SEO tags.

Project Description

Seo-Meow is a very simple Django app to manage basic SEO tags. https://github.com/utekay/seo-meow

Installation

$ pip install git+https://github.com/utekay/seo-meow.git
# settings.py

INSTALLED_APPS = [
    ...
    'seomeow',
]
$ python manage.py migrate seomeow

Usage

The app looks for the SeoMeow object that matches the current URL. Otherwise it returns the object for “/” which is created automatically.

{% load seomeow %}

<!DOCTYPE html>
<html lang="en">
  <head>
    ...
    {% put_seo_meow_tags_here %}
    ...

Also you can ‘assign’ the SeoMeow object to any model instance via Django admin interface. A hyperlink for editing or creating a related SeoMeow object will be available in the message area after mixin class is added to the admin model.

# admin.py

from django.contrib import admin
from seomeow.admin import SeoMeowShortcut

from .models import News

@admin.register(News)
class NewsAdmin(SeoMeowShortcut, admin.ModelAdmin):
    ...

The model method “get_absolute_url” is required in this case.

# models.py

from django.db import models
from django.core.urlresolvers import reverse

class News(models.Model):
    ...

    def get_absolute_url(self):
        # return "/news/%d/" % self.pk # or
        return reverse("news", args=(self.pk,))
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
seo-meow-0.1.zip (8.9 kB) Copy SHA256 Checksum SHA256 Source Aug 31, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting