Skip to main content

Menu app for django-monocle project

Project description

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

Меню для навигации по сайту. Переходы между блоками анимированы.

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

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

![Menu](/images_readme/menu_admin2.png)

## Файл models.py:

from django.db import models

class Menu(models.Model):

name = models.CharField(max_length=255, verbose_name=’Название пункта меню’) anchor = models.CharField(max_length=255, verbose_name=’ID блока’) 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_menu-0.1.0.7.tar.gz (3.3 kB view hashes)

Uploaded source

Built Distribution

monocle_menu-0.1.0.7-py3-none-any.whl (6.3 kB view hashes)

Uploaded 3 4

Supported by

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