幽门螺杆菌

PyLucid的Python项目详细描述


关于pylucid

pylucid是一个使用django-cms用python编写的开源web内容管理系统。

对于djangocms-installer

目标是简化django cms的设置。

pylucid直接将编译好的twitter bootstrap v4(mit授权)与一些简单的模板一起交付使用。

Pylucid是根据GNU通用公共许可v3或更高版本(GPLv3+)授权的

努力,叉子和贡献!;)

Build Status on travis-ci.orgtravis-ci.org/jedie/PyLucid
Coverage Status on coveralls.iocoveralls.io/r/jedie/PyLucid
Requirements Status on requires.iorequires.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

外部应用程序配置

依赖关系应用程序可能需要配置才能正常工作。

详情请参阅每份申请文件。

向后不相容变化

每次更新:运行“更新”部分中的步骤:见上文。

v3.0至v3.1

twitter引导程序从v3更新到v4:更新您自己的模板/样式。

v2.1至v3.0

创建一个新的、新鲜的pylucid环境和一个新的页面实例。请参阅上面的“安装”部分。 传输设置,例如:数据库连接信息。

只需运行“migrations”和“collectstatic”并更新您自己的模板/样式。

较旧的更改如下:https://www.pylucid.org/de/blog/tag/backward-incompatible/

相容矩阵

PyLucidDjango-CMSDjangoPython
V3.0V3.4 LTSV1.11 LTS3.5, 3.6
v2.1v3.3v1.8 LTS3.4, 3.5
v2.0v3.2v1.8 LTS3.4, 3.5
<=v1.6
v1.62.6, 2.7

发布历史

(并非所有旧版本都已列出。)

对于较老的Pylucid历史,请查看:

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
amazon web services Java AWS s3:如何使用Md5预签名url设置和上载内容   twitter使用java从推文中排除一些单词   如何在GUI java中添加延迟时间   java程序,如何使用Outputstream发送两次消息   java为什么是javax。在将Yasson与JSONB一起使用时,Glassfish中的json需要作为依赖项吗?   如何从dist文件夹中读取文件   java如何获取与模式匹配的文件列表   java如何使用Intent从Android应用程序发送彩信?   java限制对Spring的依赖,同时又不丧失框架的功能   java是否将捕获异常报告给Firebase/Fabric等?   用jdbcjava实现mysql分页   给定URI的java注释检索   java是序列化/反序列化公共枚举的简单方法?   java如何使用jMockit模拟本机方法