-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change will update the docker container to Python 3.8 and Postgres container to 12.2. It removes the Elasticsearch container, which seemed unnecessary. This change also ensures that the regulations_example app functions, and adds some example data.
- Loading branch information
1 parent
3b539f2
commit cbb67fb
Showing
8 changed files
with
854 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ done | |
|
||
>&2 echo "Postgres is up - continuing" | ||
|
||
/venv/bin/python manage.py migrate --noinput | ||
|
||
exec "$@" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,43 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.27 on 2020-01-27 11:03 | ||
# Generated by Django 2.2.11 on 2020-03-23 17:41 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
from wagtail.contrib.routable_page.models import RoutablePageMixin | ||
from wagtail.core import blocks | ||
from wagtail.core import fields | ||
import wagtail.contrib.routable_page.models | ||
import wagtail.core.blocks | ||
import wagtail.core.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('wagtailregulations', '__first__'), | ||
('wagtailcore', '0040_page_draft_title'), | ||
('wagtailregulations', '0001_initial'), | ||
('wagtailcore', '0045_assign_unlock_grouppagepermission'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TestRegulationLandingPage', | ||
fields=[ | ||
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), | ||
('body', fields.StreamField((('title', blocks.CharBlock()), ('introduction', blocks.RichTextBlock()), ('regulations_list', blocks.StructBlock((('heading', blocks.CharBlock(help_text='Regulations list heading', required=False)), ('more_regs_page', blocks.PageChooserBlock(help_text='Link to more regulations')), ('more_regs_text', blocks.CharBlock(help_text='Text to show on link to more regulations', required=False)))))))), | ||
('body', wagtail.core.fields.StreamField([('title', wagtail.core.blocks.CharBlock()), ('introduction', wagtail.core.blocks.RichTextBlock()), ('regulations_list', wagtail.core.blocks.StructBlock([]))])), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=(RoutablePageMixin, 'wagtailcore.page'), | ||
bases=(wagtail.contrib.routable_page.models.RoutablePageMixin, 'wagtailcore.page'), | ||
), | ||
migrations.CreateModel( | ||
name='TestRegulationPage', | ||
fields=[ | ||
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')), | ||
('body', fields.StreamField((('title', blocks.CharBlock()), ('introduction', blocks.RichTextBlock())))), | ||
('body', wagtail.core.fields.StreamField([('title', wagtail.core.blocks.CharBlock()), ('introduction', wagtail.core.blocks.RichTextBlock())])), | ||
('regulation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='page', to='wagtailregulations.Part')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
bases=(RoutablePageMixin, 'wagtailcore.page', models.Model), | ||
bases=(wagtail.contrib.routable_page.models.RoutablePageMixin, 'wagtailcore.page', models.Model), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import os | ||
from django.core.wsgi import get_wsgi_application | ||
|
||
application = get_wsgi_application() |