Skip to main content

Social buttons for landings

Project description

— ### Модуль: 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’]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monocle_social_buttons-0.2.0.3.tar.gz (117.9 kB view details)

Uploaded Source

Built Distribution

monocle_social_buttons-0.2.0.3-py3-none-any.whl (131.8 kB view details)

Uploaded Python 3

File details

Details for the file monocle_social_buttons-0.2.0.3.tar.gz.

File metadata

File hashes

Hashes for monocle_social_buttons-0.2.0.3.tar.gz
Algorithm Hash digest
SHA256 a2c3508259a65884e1e5408f0bed0911420df2844303dfa44777b0c50ff47acb
MD5 37126a2eb19d5dd145ca156ba0bdd0e3
BLAKE2b-256 c5bbec9aba6d6c00d53537892bcaee01ee6f75871ff1365165b0d83b7e4c981b

See more details on using hashes here.

File details

Details for the file monocle_social_buttons-0.2.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for monocle_social_buttons-0.2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 637f8ce2c6d2843988724c990f266f64fe430590e546e1a525f173fefad42a77
MD5 bcf3c53c6a4d0b496f1ec6ac1dc6b05b
BLAKE2b-256 bb6162ee73b382c4c91fc69c26d73182681660b75d7921d39268f8c6e60fc13a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page