Skip to content

tomaszroszko/django-social-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Social Links

Allow to create social link (facebook, twitter, others...) and assing them to groups or any other object in your project.

Install

It is strongly recommanded to install this app from GIT with PIP onto you project virtualenv.

pip install -e git+https://github.com/tomaszroszko/django-social-links.git#egg=django-social-links

Add app to you settings.py

INSTALLED_APPS = (
    ...
    'sociallinks'
    ...
)

Run syncdb and migrate command

python manage.py syncdb
python manage.py migrate

Usage

Example of getting all social links for 'user'

{% load sociallink_tags %}

{% obj_social_links user as user_links %}
{% for link in user_links %}
    <a href="{{ link.link }}" class="{{ link.link_type.css_class }}">
        {{ link.link_type.name }}
    </a>
{% endfor %}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages