feincms 画廊的简单实现
项目描述
feincms_simplegallery 是 feincms 画廊的简单实现
快速开始
将“feincms_simplegallery”添加到您的 INSTALLED_APPS 设置中,如下所示:
INSTALLED_APPS = ( ... 'feincms_simplegallery', )如果您打算将其用作 feincms 内容类型,请为您的 Page 模型(或任何其他 Base 派生模型)注册 GalleryContent,如下所示:
from feincms_simplegallery.models import GalleryContent # ... Page.create_content_type(GalleryContent)
(可选)如果您想使用不同的模板呈现画廊,可以为 GalleryContent 定义 TYPE_CHOICES:
from feincms_simplegallery.models import GalleryContent # ... Page.create_content_type(GalleryContent, TYPE_CHOICES=( ('default', 'default template'), ('other', 'some other template'), # ... (other types) ) ) # galleries will be rendered as either of these, depending on admin choice: # templates/content/feincms_simplegallery/default.html # templates/content/feincms_simplegallery/other.html # ... Some of the templates (grid and lightbox) are bundled with the plugin迁移模型
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
feincms_simplegallery-0.3.1.tar.gz
(13.1 kB
查看哈希)
内置分布
关
feincms_simplegallery -0.3.1.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 8e9cee571db19f860e8ff866d04bbeb0980867d1913814db4bece10801b735ff |
|
| MD5 | 312ebb75738887af9b6a654f7e47370b |
|
| 布莱克2-256 | 3ab19e57cce2cc720c9ae3bcda880aa4c029c3d56f4433a4db48600efb849052 |
关
feincms_simplegallery -0.3.1-py2.py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 38c0e5ccddfddf853f78d9b2aafb3a9e4aaff4486aceb8d47015b832087446cb |
|
| MD5 | b99a69c63534b0c11cdbbc243bf2978a |
|
| 布莱克2-256 | 5d7713b0b8845cb6ab31e5322c7ccad6af3532624b0535ac8c8ccac95fdd9625 |