Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

seo-meow

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seo-meow

A simple Django app to manage basic SEO tags.

  • 0.1
  • PyPI
  • Socket score

Maintainers
1

======== Seo-Meow

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,))

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc