Django CMS 3.0.x Documentationperfec- tionists with deadlines”. django CMS offers out-of-the-box support for the common features you’d expect from a CMS, but can also be easily customised and extended by developers to create a site that MessageMiddleware’ • TEMPLATE_CONTEXT_PROCESSORS: must contain ’django.contrib.messages.context_processors.me Point your STATIC_ROOT to where the static files should live (that is, your images, CSS files, Javascript Table of contents django cms Documentation, Release 3.0.19.dev1 Use the new side-frame-based administration by appending ‘?edit’ to your URL as follows: http://127.0.0.1:8000/?edit. This will reveal a0 码力 | 180 页 | 1.56 MB | 6 月前3
django cms 3.3.x Documentationperfectionists with deadlines”. django CMS offers out-of-the-box support for the common features you’d expect from a CMS, but can also be easily customised and extended by developers to create a site that polls_cms_integration. After all, that’s where we’re going to be doing all the other integration work. However, we’d now have an application that makes assumptions about the name of the template it should extend (see of the base.html template we created) which might not be correct for a different project. Also, we’d have to make sure that polls_cms_integration came before polls in INSTALLED_APPS, otherwise the templates0 码力 | 386 页 | 1.56 MB | 1 年前3
Django 官方教程翻译项目第三部分 - 37 - 本文档使用 书栈(BookStack.CN) 构建 在你上网的过程中,很可能看见过像这样美丽的 URL:“ME2/Sites/dirmod.asp? sid=&type=gen&mod=Core+Pages&gid=A6CD4967199A42D9B65B1B”。别担心,Django 里的 URL 要比这优雅的多! 一个 URL 模式定义了某种 URL 的基本格式 —— 时间分组(date-hierarchies)和根据 表 头排序(column-header-ordering)可以完美结合,一起工作。 显然,左上角有个“Django 管理系统(Django administration)”看起来非常滑稽,它其实只 是个占位文本而已。 你可以轻易地修改它 - 通过使用 Django 模板系统。Django 管理页面是 Django 自身提供的, 它的界面使用的是 Django siteheader|default:(‘Django administration’) }}(包括大括号)替 换为你想要的字符就行了。你应该把它编辑成大概这个样子: 1. {% block branding %} 2.Polls Administration
3. {% endblock0 码力 | 103 页 | 1.86 MB | 1 年前3
Django CMS 3.11.10 Documentationperfectionists with deadlines”. django CMS offers out-of-the-box support for the common features you’d expect from a CMS, but can also be easily customised and extended by developers to create a site that build web docker compose up -d database_default docker compose run web python manage.py migrate docker compose run web python manage.py createsuperuser docker compose up -d After selecting Next, you com/django-cms/djangocms- admin-style]. This provides some styling that helps make django CMS administration components easier to work with. Technically it’s an optional component and does not need to be0 码力 | 493 页 | 1.44 MB | 6 月前0.03
Celery 4.0 Documentationsee Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = { 'tasks.add': 'low-priority' **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency: 8 (processes) - ** ---------- . events: OFF (enable -E to monitor 2) >>> res.get(timeout=1) 4 You can find the task’s id by looking at the id attribute: >>> res.id d6b3aea2-fb9b-4ebc-8da4-848818db9114 You can also inspect the exception and traceback if the task raised0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.0.1 Documentationsee Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = { 'tasks.add': 'low-priority' **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency: 8 (processes) - ** ---------- . events: OFF (enable -E to monitor 2) >>> res.get(timeout=1) 4 You can find the task’s id by looking at the id attribute: >>> res.id d6b3aea2-fb9b-4ebc-8da4-848818db9114 You can also inspect the exception and traceback if the task raised0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationsee Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = { 'tasks.add': 'low-priority' **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency: 8 (processes) - ** ---------- . events: OFF (enable -E to monitor 2) >>> res.get(timeout=1) 4 You can find the task’s id by looking at the id attribute: >>> res.id d6b3aea2-fb9b-4ebc-8da4-848818db9114 You can also inspect the exception and traceback if the task raised0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 Documentationsee Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = { 'tasks.add': 'low-priority' **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency: 8 (processes) - ** ---------- . events: OFF (enable -E to monitor 2) >>> res.get(timeout=1) 4 You can find the task’s id by looking at the id attribute: >>> res.id d6b3aea2-fb9b-4ebc-8da4-848818db9114 You can also inspect the exception and traceback if the task raised0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery v4.2.2 Documentationsee Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = { 'tasks.add': 'low-priority' **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency: 8 (processes) - ** ---------- . events: OFF (enable -E to monitor 2) >>> res.get(timeout=1) 4 You can find the task’s id by looking at the id attribute: >>> res.id d6b3aea2-fb9b-4ebc-8da4-848818db9114 You can also inspect the exception and traceback if the task raised0 码力 | 1121 页 | 1.38 MB | 1 年前3
Celery v4.2.1 Documentationsee Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = { 'tasks.add': 'low-priority' **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency: 8 (processes) - ** ---------- . events: OFF (enable -E to monitor 2) >>> res.get(timeout=1) 4 You can find the task’s id by looking at the id attribute: >>> res.id d6b3aea2-fb9b-4ebc-8da4-848818db9114 You can also inspect the exception and traceback if the task raised0 码力 | 1121 页 | 1.38 MB | 1 年前3
共 563 条
- 1
- 2
- 3
- 4
- 5
- 6
- 57













