未知
项目描述
内容链接
内容链接是一个 FeinCMS 内容类型 应用程序,允许您将其他FeinCMS页面或外部URL链接到您的网站中的特定页面。
安装
通过以下方式安装
pip安装内容链接
将 content_links 添加到 settings.py 中的 INSTALLED_APPS
- INSTALLED_APPS = (
‘awesome_app’,
‘content_links’,
‘django_stuff_etc’,
)
在 models.py 中为FeinCMS注册应用程序
from feincms.module.page.models import Page
from content_links.models import ContentLink
- Page.create_content_type(ContentLink, TYPE_CHOICES=(
(‘one’, ‘One’),
(‘two’, ‘Two’), )
)
运行以下命令同步数据库
python manage.py syncdb –all
访问 管理面板 并享受乐趣!
项目详情
关闭
content-links-0.1.2.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 4a918d44734605fae48d72e154d7518b349663070770205813bc41cc386680e0 |
|
MD5 | ac432febb2c8fa27fd9896052a504688 |
|
BLAKE2b-256 | 21d3a02a9334b42e97d58555c76ac0fb3e9eb7acb820e9300049f87c7d39dac2 |