GithubHelp home page GithubHelp logo

legendri / django-share Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nekstrom/django-share

0.0 2.0 0.0 178 KB

Django Share allow users to share a web page in various social networks like bookmarking services, social blogs and similiar.

Python 45.00% CSS 24.17% JavaScript 30.83%

django-share's Introduction

Django Share

Django Share allow users to share a web page in various social networks like bookmarking services, social blogs and similiar. Most providers included are no using widgets but are based on theyre api's. Meaning you can customise the look and feel of every provider.

Installation

Add to installed_apps:

'share',

Include url patterns

(r'^share/', include('share.urls')),

Load the template tags where needed

{% load share_tags %}

Settings

SHARE_PROVIDERS

A turple containing providers.

Defaults to:

{'main': ('facebook', 'twitter', 'pinterest', 'googleplus',),
'more': ('email', 'print', ),}

Template tags

{% share_css %}
{% share_js %}

Needed css and js files for the sharing services

{% share %}    

Renders a listing for all enabled providers. Its also possible to limit the list to a selection of providers.

{% share facebook twitter %}  

Returns a list with the given providers

Templates

The default listing/widget can found at share/links.html

All providers are avaiable at share/providers/[provider].html

ex: share/providers/facebook.html

You can create a custom provider by adding it the SHARE_PROVIDERS setting and creating a template for it at: share/providers/[provider].html

Included Providers

facebook
twitter
pinterest
googleplus

custom providers

email
print

django-share's People

Contributors

lostb1t avatar

Watchers

James Cloos avatar  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.