PyLucid CMS
项目描述
关于PyLucid
PyLucid是一个使用Django-CMS编写的开源Web内容管理系统,用Python编写。
它更像是djangocms-installer的替代品
目标是简化Django-CMS的设置。
PyLucid直接提供编译好的Twitter Bootstrap v4(MIT许可)和一些简单的模板。
PyLucid在GNU通用公共许可证v3或更高版本(GPLv3+)下授权
试试,分叉并贡献! ;)
安装
1. 在PyLucid虚拟环境中bootstrap
# download bootstrap file: /home/FooBar$ wget https://github.com/jedie/PyLucid/raw/master/pylucid/pylucid_boot.py # Create virtualenv with all needed packages: /home/FooBar$ python3 pylucid_boot.py boot ~/PyLucid-env
2. 使用创建的PyLucid虚拟环境
# Go into created virtualenv: /home/FooBar$ cd ~/PyLucid-env # activate the env: ~/PyLucid-env $ source bin/activate # Start the interactive admin shell: (PyLucid-env) ~/PyLucid-env $ pylucid_admin pylucid_admin.py shell v3.0.0 Type help or ? to list commands. pylucid_admin.py>
3. 创建页面实例
页面实例是一个具有自己的设置的自定义django项目,便于快速启动自己的网站。在交互式管理shell中创建页面实例
pylucid_admin.py> create_page_instance ~/page_instance you_project_name ... pylucid_admin.py> quit # Go into created page instance (PyLucid_env) ~/PyLucid_env $ cd ~/page_instance/ # Create cache tables (PyLucid_env) ~/page_instance $ ./manage.py createcachetable # init database (PyLucid_env) ~/page_instance $ ./manage.py migrate # Create a super user (PyLucid_env) ~/page_instance $ ./manage.py createsuperuser # Copies all static files together: (PyLucid_env) ~/page_instance $ ./manage.py collectstatic # run developer server: (PyLucid_env) ~/page_instance $ ./manage.py runserver
更新
一般概述
更新环境
迁移数据库
收集静态文件
更新您自己的模板/样式(不一定需要)
看起来像这样
# Go into created virtualenv: /home/FooBar$ cd ~/PyLucid-env # activate the env: ~/PyLucid-env $ source bin/activate # Start the interactive admin shell and update environment: (PyLucid-env) ~/PyLucid-env $ pylucid_admin pylucid_admin.py shell v3.0.0 Type help or ? to list commands. pylucid_admin.py> update_env ... pylucid_admin.py> quit # Go into created page instance (PyLucid_env) ~/PyLucid_env $ cd ~/page_instance/ # init database (PyLucid_env) ~/page_instance $ ./manage.py migrate # Copies all static files together: (PyLucid_env) ~/page_instance $ ./manage.py collectstatic
注意:请检查下面的“不兼容的更改”!
更多信息
运行测试项目
您可以使用Django开发服务器运行测试项目
(PyLucid-env) ~/PyLucid-env $ pylucid_admin run_test_project_dev_server
手动安装
注意:您可以通过PyPi包手动安装PyLucid
创建虚拟环境
通过pip从PyPi安装pylucid
运行 pylucid_admin update_env
pylucid_boot.py - 交互式Shell
pylucid_boot.py 是一个带有命令补全的交互式Shell。您可以启动它并执行以下操作
/home/FooBar$ python3 pylucid_boot.py pylucid_boot.py shell v0.2.0 Type help or ? to list commands. pylucid_boot.py> ? Hint: All commands can be called directly from commandline. e.g.: $ ./pylucid_boot.py help Use <tab> to command completion. Documented commands (type help <topic>): ======================================== boot boot_developer help quit
pylucid_admin.py - 交互式Shell
pylucid_admin.py 是一个带有命令补全的交互式Shell,例如
(PyLucid_env) ~/PyLucid_env $ pylucid_admin Activated virtualenv detected: '/home/foobar/PyLucid-env' (/home/foobar/PyLucid-env/bin/python3) pylucid_admin.py shell v0.2.0 Type help or ? to list commands. pylucid_admin.py> ? Hint: All commands can be called directly from commandline. e.g.: $ ./pylucid_admin.py help Use <tab> to command completion. Documented commands (type help <topic>): ======================================== change_editable_address pip_freeze run_test_project_dev_server create_page_instance pytest update_env help quit upgrade_requirements
外部应用程序配置
依赖应用程序可能需要配置才能正常运行。
请参阅每个应用程序的详细文档。
djangocms-blog: https://djangocms-blog.readthedocs.io/en/latest/installation.html#minimal-configuration
django-filer: https://django-filer.readthedocs.io
django-meta: https://github.com/nephila/django-meta#installation
django-meta-mixin: https://github.com/nephila/django-meta-mixin#installation
django-parler: https://django-parler.readthedocs.io/en/latest/quickstart.html#configuration
django-taggit-autosuggest: https://bitbucket.org/fabian/django-taggit-autosuggest
aldryn-search: https://github.com/aldryn/aldryn-search#usage
twitter bootstrap: https://bootstrap.ac.cn/docs/
向后不兼容的更改
每次更新:运行“更新”部分中的步骤:见上文。
v3.1到v3.2
更新您的页面实例 urls.py 例如
- url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', admin.site.urls),
v3.0到v3.1
Twitter bootstrap从v3更新到v4:更新您自己的模板/样式。
v2.1到v3.0
创建一个新的PyLucid环境和一个新的页面实例。请参阅“安装”部分。转移设置,例如:数据库连接信息。
只需运行“迁移”和“收集静态文件”,并更新您自己的模板/样式。
旧版本的更改在此处: https://www.pylucid.org/de/blog/tag/backward-incompatible/
兼容性矩阵
PyLucid |
Django-CMS |
Django |
Python |
v3.2 |
V3.7 |
V2.2 LTS |
3.6, 3.7, 3.8 |
v3.0 |
V3.4 LTS |
V1.11 LTS |
3.5, 3.6 |
v2.1 |
v3.3 |
v1.8 LTS |
3.4, 3.5 |
v2.0 |
v3.2 |
v1.8 LTS |
3.4, 3.5 |
<=v1.6 |
v1.6 |
2.6, 2.7 |
发布历史
compare v3.2.0…master - dev
TBC
-
更新到Django v2.2.10和Django-CMS v3.7.1
-
更新要求
-
更新要求,例如:django==1.11.21, djangocms-blog==0.9.9, djangocms-history==1.1.0
错误修复:在PyPi包中包含缺失的pylucid安装程序
-
更新要求,例如:django==1.11.15, djangocms-blog==0.9.5
错误修复‘run_test_project_dev_server’
设置警告
更新新的bootstrap_env API的更新
-
更新要求,例如:Django v1.11.12, Django-CMS v3.4.6, Django-CMS-Blog v0.9.3
更新bootstrap文件(通过开发模式中的“update_own_boot_file”)
-
重新激活 django-processinfo
-
彩色化pylucid boot/admin输出
更新twitter bootstrap v3到v4
在运行“run_test_project_dev_server”时创建虚拟页面
要求更新
-
更新要求(django v1.11.11和其他)
pylucid boot/admin:更好的“帮助”列表:打印第一个DocString行。
-
激活CurrentSiteMiddleware并使用request.site.name在页脚中
-
更新到Django-CMS v3.4.x LTS,Django v1.11 LTS
重写bootstrap
新增:交互式Shell pylucid_admin
-
改为官方 https://pypi.ac.cn/project/djangocms-htmlsitemap/ PyPi 包。
-
更新:pillow、django-debug-toolbar、django-compressor、sqlparse
-
从 django-cms v3.2 切换到 v3.3
从 cmsplugin-htmlsitemap 切换到 djangocms-htmlsitemap
警告:将不会执行迁移!您必须手动迁移并删除数据库表 cmsplugin_htmlsitemap_htmlsitemap ;)
-
重写以使用 Django-CMS
-
v1.6.x 是基于 Django-CMS 的最后一个 PyLucid 发布版
从 django 1.4 切换到 1.6
-
从 django 1.3 切换到 1.4
-
PyLucid.org 使用了第一个使用 django 的 v0.8 测试版
-
第一个版本,仅支持 lucidCMS 的 CGI 脚本 ListOfNewSides(基于 PHP)
(并非所有旧版本都列出来了。)
关于更早的 PyLucid 历史,请查看
捐赠
链接
主页 |
|
源代码 @ GitHub |
|
Python 包索引 |
|
IRC |
项目详情
下载文件
下载适合您平台的文件。如果您不确定该选择哪个,请了解更多关于安装包的信息。