Skip to main content

Django Tools SocialNetworks

Simple Django app to manage a website social network links

Installation

  1. Install with pip install django-tools-socialnetworks.

  2. Add djtools.socialnetworks to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
    ...
    'djtools.socialnetworks',
]

3.1 Add the context processor to your settings file if need the social networks in all your pages.

TEMPLATES = [
    {
        ...
        'OPTIONS': {
            'context_processors': [
                ...
                'djtools.socialnetworks.context_processors.social_networks',
            ],
        },
    },
]

3.2 Or extend the get_context function of your view like this:

def get_context_data(self, **kwargs):
    context = super().get_context_data(**kwargs)
    context['social_networks'] = SocialNetwork.get_social_networks()
    return context
  1. Run migrations commands python manage.py migrate

  2. Include social_networks.html snippet in your template or override it.

{% include "djtools/socialnetworks/social_networks.html" %}

Metadata

Release files for django-tools-socialnetworks 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-tools-socialnetworks 1.1.4
File Size Uploaded
django-tools-socialnetworks-1.1.4.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-tools-socialnetworks 1.1.4
File Interpreter ABI Platform
django_tools_socialnetworks-1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / django-tools-socialnetworks-1.1.4.tar.gz

Download URL django-tools-socialnetworks-1.1.4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5355fdcefcb4333f97f92ec424dfe399249850eb9d88af47f6b90de76b34ff6c
BLAKE2b-256 checksum
How to use checksums
191fcb367b256e53168be002b1b3bc6907e71fbaf905d5680ff4d125488b32ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

Release files / django_tools_socialnetworks-1.1.4-py3-none-any.whl

Download URL django_tools_socialnetworks-1.1.4-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cb6c2edb4021e51b21acda9c4b5d2456ed0539ebb830a00cc45d9349291bf21
BLAKE2b-256 checksum
How to use checksums
3bd72a5a576792ec967db5b05f88d35b97ca4576a794bd1ff997d61c70880c60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page