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 Provenance Actions
django-tools-socialnetworks-1.1.4.tar.gz 4.5 kB Without provenance Details for django-tools-socialnetworks-1.1.4.tar.gz

Built distribution (wheel)

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

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

Security for django-tools-socialnetworks 1.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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