This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

django-social-metadata is a Django application that provides mixin and template to display social metadata for Facebook and Google+.



javascript-settings can be installed as a normal Python package.

Example instalation for pip:

$ pip install django-social-metadata


Add javascript-settings to INSTALLED_APPS:



Include template in HEAD section of your main template:

{% include "social_metadata/default_tags.html" %}

Usage Example

from urlparse import urljoin

from django.conf.settings import MEDIA_URL
from django.views.generic import DetailView

import social_metadata.views

class PhotoSocialDataMixin(social_metadata.views.SocialDataMixin):
    def get_social_title(self):
        return self.title

    def get_social_images(self):
        return [urljoin(MEDIA_URL, self.image.path)]

    def get_social_description(self):
        return self.description

class PhotoDetail(PhotoSocialDataMixin, DetailView):
     model = Photo

Check for other social metadata fields.

If you want to use Twitter cards you have to provide all required fields for given type ( ), as well as submit a link in the validator at and witelist every type you want to use for given domain.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-social-metadata-1.3.tar.gz (2.8 kB) Copy SHA256 Checksum SHA256 Source Apr 7, 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