Django Tools SocialNetworks
Simple Django app to manage a website social network links
Installation
-
Install with pip install
django-tools-socialnetworks. -
Add
djtools.socialnetworksto 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
-
Run migrations commands
python manage.py migrate -
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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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
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.