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.

Files for monocle_social_buttons, version 0.2.0.1
Filename, size File type Python version Upload date Hashes
Filename, size monocle_social_buttons-0.2.0.1-py3-none-any.whl (114.1 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size monocle_social_buttons-0.2.0.1.tar.gz (100.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page