幽门螺杆菌

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第三方库


热门话题
java这种检测心跳的方法是线程安全和一致的吗?   c#多语言开发   spring Mongo使用java驱动程序对大数据进行聚合查询?   java为什么加密时会有额外的块?   java Android EditText颜色更改会破坏边距   JavaGuice:根据谁获得不同的实现注入不同的实现?   java如何分割大尺寸。将txt文件数据分成小部分并插入数据库?   java如何使程序显示用户输入的整数的相反顺序?   java如何在Android上使用最新的HttpComponents版本?   java文件大小增加但未写入文本   java如何将安卓视图(工具提示)置于另一个内部视图之上?   java如何在方法内部重写Runnable?   java不能运行一个。jar文件,以前工作得很好   java StringTemplate缩进在字符串中添加空格