-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation #50
Documentation #50
Changes from 1 commit
bfa420d
eb2ac51
48ab21b
cb2ec3a
0353287
fe9484a
f5d8456
b7e8ade
94222d4
0b6b803
d796303
55922ab
e1bb2b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ export WAGTAIL_NEWSLETTER_MAILCHIMP_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-us1 | |
export WAGTAIL_NEWSLETTER_FROM_NAME="My Newsletter" | ||
export [email protected] | ||
|
||
python -m pip install --editable='.[testing,mailchimp,mrml]' | ||
./demo/manage.py migrate | ||
./demo/manage.py createcachetable | ||
./demo/manage.py createsuperuser | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import json | ||
|
||
from wagtail.fields import StreamField as WagtailStreamfield | ||
from wagtail.fields import StreamField as WagtailStreamField | ||
|
||
|
||
class StreamField(WagtailStreamfield): | ||
class StreamField(WagtailStreamField): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Curious to know what this override really is for, I don't understand why a demo project needs something like this 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, it's just to avoid migration noise from changes in the StreamField blocks definition. Originally I expected to be adding several block types in sequence to demo their features. |
||
def __init__(self, *args, **kwargs): | ||
""" | ||
Overrides StreamField.__init__() to account for `block_types` no longer | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realised we do have a
CONTRIBUTING.md
... But OK, I think this is a small worthwhile improvement 🙂