未知
content-links的Python项目详细描述
内容链接
内容链接是一个FeinCMScontent type应用程序,允许您链接其他 feincms页面或外部url,指向网站中的特定页面。
安装
安装方法是
pip install content-links
在settings.py中将内容链接添加到已安装的应用程序中。
- 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
访问admin panel并享受乐趣!