幽门螺杆菌
PyLucid的Python项目详细描述
关于pylucid
pylucid是一个使用django-cms用python编写的开源web内容管理系统。
目标是简化django cms的设置。
pylucid直接将编译好的twitter bootstrap v4(mit授权)与一些简单的模板一起交付使用。
Pylucid是根据GNU通用公共许可v3或更高版本(GPLv3+)授权的
努力,叉子和贡献!;)
travis-ci.org/jedie/PyLucid | |
coveralls.io/r/jedie/PyLucid | |
requires.io/github/jedie/PyLucid/requirements/ |
安装
1.引导程序pylucid virtualenv
# 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 virtualenv
# 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:
- 创建virtualenv
- 从pypi通过pip安装pylucid
- 运行pylucid_admin update_env
pylucid_boot.py-交互式外壳
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-交互式外壳
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博客:https://djangocms-blog.readthedocs.io/en/latest/installation.html#minimal-configuration
- django文件管理器:https://django-filer.readthedocs.io
- django元:https://github.com/nephila/django-meta#installation
- Django Meta Mixin:^ {A5}
- django parler:https://django-parler.readthedocs.io/en/latest/quickstart.html#configuration
- django taggit自动建议:https://bitbucket.org/fabian/django-taggit-autosuggest
- 奥尔德林搜索:https://github.com/aldryn/aldryn-search#usage
- 草堆:http://django-haystack.readthedocs.io/en/stable/
- twitter引导:https://getbootstrap.com/docs/
向后不相容变化
每次更新:运行“更新”部分中的步骤:见上文。
v3.0至v3.1
twitter引导程序从v3更新到v4:更新您自己的模板/样式。
v2.1至v3.0
创建一个新的、新鲜的pylucid环境和一个新的页面实例。请参阅上面的“安装”部分。 传输设置,例如:数据库连接信息。
只需运行“migrations”和“collectstatic”并更新您自己的模板/样式。
较旧的更改如下:https://www.pylucid.org/de/blog/tag/backward-incompatible/
相容矩阵
PyLucid | Django-CMS | Django | Python |
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 |
发布历史
- TBC
- Update requirements, e.g.: django==1.11.21, djangocms-blog==0.9.9, djangocms-history==1.1.0
- Bugfix: include missing pylucid installer in PyPi package
- Update requirements, e.g.: django==1.11.15, djangocms-blog==0.9.5
- Bugfix ‘run_test_project_dev_server’
- setup warnings
- updates for new bootstrap_env API
- Update requirements, e.g.: Django v1.11.12, Django-CMS v3.4.6, Django-CMS-Blog v0.9.3
- Update bootstrap file (via ‘update_own_boot_file’ in dev. mode)
- reactivate django-processinfo
- colorize pylucid boot/admin output
- update twitter bootstrap v3 with v4
- create dummy pages while running “run_test_project_dev_server”
- requirement updates
- update requirements (django v1.11.11 and others)
- pylucid boot/admin: Better ‘help’ list: print first DocString line, too.
- Activate CurrentSiteMiddleware and use request.site.name in footer
- Update to Django-CMS v3.4.x LTS, Django v1.11 LTS
- rewrite bootstrap
- NEW: interactive shell ^{tt4}$
- Changed to official https://pypi.org/project/djangocms-htmlsitemap/ PyPi Package.
- Update: pillow, django-debug-toolbar, django-compressor, sqlparse
switch from django-cms v3.2 to v3.3
move from cmsplugin-htmlsitemap to djangocms-htmlsitemap
- WARNING: A migration will not be done! You have to migrate by hand and delete the database table cmsplugin_htmlsitemap_htmlsitemap ;)
- rewrite to use Django-CMS
- v1.6.x is the last PyLucid release that doesn’t based on Django-CMS
- switch from django 1.4 to 1.6
- switch from django 1.3 to 1.4
- PyLucid.org used the first v0.8 Beta Version who used django
- first Version, only CGI script ListOfNewSides for lucidCMS (PHP based)
(并非所有旧版本都已列出。)
对于较老的Pylucid历史,请查看:
链接
Homepage | http://www.pylucid.org |
Sourcecode @ GitHub | github.com/jedie/PyLucid |
Python Package Index | pypi.org/project/PyLucid/ |
IRC | #pylucid on freenode.net |