Skip to content

Instantly share code, notes, and snippets.

@hminnovation
hminnovation / Getting started wagtail h
Last active August 29, 2015 14:21
Getting started wagtail h
dj makemigrations
@hminnovation
hminnovation / Getting started wagtail i
Last active August 29, 2015 14:21
Getting started wagtail i
dj migrate
@hminnovation
hminnovation / Getting started wagtail j
Last active August 29, 2015 14:21
Getting started wagtail j
{% block content %}{% endblock %}
@hminnovation
hminnovation / Getting started wagtail k
Last active August 29, 2015 14:21
Getting started wagtail k
{% include "includes/header.html" %} and
{% include "includes/footer.html" %}
@hminnovation
hminnovation / Getting started wagtail l
Last active August 29, 2015 14:21
Getting started wagtail l
{% extends "base.html" %}.
@hminnovation
hminnovation / Getting started wagtail m
Last active August 29, 2015 14:21
Getting started wagtail m
{% block content %}
@hminnovation
hminnovation / Getting started wagtail n
Last active August 29, 2015 14:21
Getting started wagtail n
{% endblock %}
@hminnovation
hminnovation / Getting started wagtail o
Last active August 29, 2015 14:21
Getting started wagtail o
{% block content %}
<h1>{{ self.title }}</h1>
<p class=”intro”>{{ self.intro }}</p>
{{ self.body|richtext }}
{% endblock %}
@hminnovation
hminnovation / Getting started wagtail p
Last active August 29, 2015 14:21
Getting started wagtail p
{% block content %}
<h1>{{ self.title }}</h1>
{% if self.intro %}
<p class=”intro”>{{ self.intro }}</p>
{% endif %}
{{ self.body|richtext }}
{% endblock %}
@hminnovation
hminnovation / Getting started wagtail q
Last active August 29, 2015 14:21
Getting started wagtail q
from django.db import models
from wagtail.wagtailcore.models import Page
from wagtail.wagtailcore.fields import RichTextField
from wagtail.wagtailadmin.edit_handlers import FieldPanel