Public | Automated Build

Last pushed: 7 months ago
Short Description
Wagtail, the cms based on django
Full Description


Wagtail, the cms based on django.

Docker Image

$ docker build -t hbrls/wagtail:{version} .

What is already in appl, the opinionated best practice?

  1. Initialized database

    $ mysql> CREATE DATABASE wagtail CHARACTER SET utf8 COLLATE utf8_general_ci;
    $ wagtail start appl
    $ python makemigrations
    $ python migrate.
    $ python createsuperuser  #
  2. Change the default home page to our own ~/home/models.IndexPage.

    1. Welcome to wagtail 下新建 IndexPage,然后将它转移到 Root
    2. 到 "设置 > 站点 > Root Page" 将默认首页设置为 IndexPage
  3. Add example of page/subpage hierarchy

        Welcome to wagtail
        首页                 <- the in facto root
  4. Add example of WhateverPage and AgreementPage. The Hallo.js Wagtail 1.5.3 is using doesn't support <h1>. Waiting for the next major release.

What you are supposed to move on?

  1. "设置 > 站点"


  1. ~/templates for templates.

  2. ~/static is the destination of assets.

  3. DJANGO_ENV: 'dev', 'sit', 'prod', ... to distinguish deploy environments.

  4. The code (e.g. ~/home/, ~/blog/ provide Page Types to be used. The structure (i.e. site map) is up to your settings from the admin panel.

  5. You would be requested a bunch of carefully-designed-hard-coded-pages. Just list their empty classes in ~/home/ (e.g. About) and do the hard code and admin panel settings.

  6. For do-whatever-you-like pages, just choose ~/home/models.Whatever in the admin panel. You can also customize your own class like ~/home/models.Agreement for a set of similar whatever pages.


  2. Official: Your first Wagtail site
  3. Official: Wagtail demo project
Docker Pull Command
Source Repository

Comments (0)