Skip to main content

— ### Модуль: monocle_social_buttons

Модуль для отображения на странице ссылок на социальные сети.

—

## Пример отображения на сайте: ![Social](/images_readme/social.png)

## Пример отображения в панели администрирования: ![Social](/images_readme/social_admin1.png)

![Social](/images_readme/social_admin2.png)

## Файл models.py:

from django.db import models

class SocialButton(models.Model):

name = models.CharField(max_length=255, verbose_name= ‘Название социальной сети’) icon = models.ImageField(upload_to=’models/%Y/%m/%d’, verbose_name= ‘Иконка соцсети’) url = models.URLField() position = models.PositiveIntegerField(default=0, verbose_name=’Порядок’)

def __str__(self):

return self.name

class Meta:

verbose_name_plural = u’Социальные кнопки’ verbose_name = u’Социальная кнопка’ ordering = [‘position’]

Release files for monocle_social_buttons 0.2.0.3

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

Source distribution (sdist)

Source distribution for monocle_social_buttons 0.2.0.3
File Size Uploaded
monocle_social_buttons-0.2.0.3.tar.gz 117.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for monocle_social_buttons 0.2.0.3
File Interpreter ABI Platform
monocle_social_buttons-0.2.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 249.7 kB

Release files / monocle_social_buttons-0.2.0.3.tar.gz

Download URL monocle_social_buttons-0.2.0.3.tar.gz
Size 117.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a2c3508259a65884e1e5408f0bed0911420df2844303dfa44777b0c50ff47acb
BLAKE2b-256 checksum
How to use checksums
c5bbec9aba6d6c00d53537892bcaee01ee6f75871ff1365165b0d83b7e4c981b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / monocle_social_buttons-0.2.0.3-py3-none-any.whl

Download URL monocle_social_buttons-0.2.0.3-py3-none-any.whl
Size 131.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
637f8ce2c6d2843988724c990f266f64fe430590e546e1a525f173fefad42a77
BLAKE2b-256 checksum
How to use checksums
bb6162ee73b382c4c91fc69c26d73182681660b75d7921d39268f8c6e60fc13a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.0.3 This release

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