From 05a2f7f3161cc037bc8012ac932c4408e955adb6 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sat, 21 Jan 2017 08:38:04 -0600 Subject: [PATCH 1/3] Specifically add files so they can be cached by Docker. --- Dockerfile-webpack | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile-webpack b/Dockerfile-webpack index 848070e..f6ef5fb 100644 --- a/Dockerfile-webpack +++ b/Dockerfile-webpack @@ -1,9 +1,9 @@ FROM node:7.3.0 RUN mkdir /code WORKDIR /code -ADD ./bikeshop_project /code +ADD ./bikeshop_project/package.json package.json RUN npm install RUN npm install -g bower -COPY ./bower.json . +ADD ./bikeshop_project/bower.json bower.json RUN bower install --allow-root EXPOSE 3000:3000 From b7fd632f53d62ba157d32f0ce18d6da61bc89991 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sat, 21 Jan 2017 08:38:27 -0600 Subject: [PATCH 2/3] Fix from upstream. --- bikeshop_project/bikeshop/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bikeshop_project/bikeshop/settings/base.py b/bikeshop_project/bikeshop/settings/base.py index 9534a50..563b27e 100644 --- a/bikeshop_project/bikeshop/settings/base.py +++ b/bikeshop_project/bikeshop/settings/base.py @@ -143,7 +143,7 @@ WEBPACK_LOADER = { 'DEFAULT': { 'CACHE': False, 'BUNDLE_DIR_NAME': 'bundles/', # must end with slash - 'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats.json'), + 'STATS_FILE': os.path.join(BASE_DIR, '../webpack-stats.json'), 'POLL_INTERVAL': 0.1, 'IGNORE': ['.+\.hot-update.js', '.+\.map'] } From efb780fc7622b96e1d13b0b9f474cacd34ec0ff0 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sat, 21 Jan 2017 08:38:56 -0600 Subject: [PATCH 3/3] Show asterisk on required fields. --- bikeshop_project/registration/models.py | 6 +++--- bikeshop_project/registration/templates/member_form.html | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bikeshop_project/registration/models.py b/bikeshop_project/registration/models.py index 2175b3f..73b6ca4 100644 --- a/bikeshop_project/registration/models.py +++ b/bikeshop_project/registration/models.py @@ -79,9 +79,9 @@ class Member(models.Model): null=True, blank=True, ) - email_consent = models.BooleanField(default=False) - first_name = models.CharField(max_length=255, null=False) - last_name = models.CharField(max_length=255, null=False) + email_consent = models.BooleanField(default=False, blank=False) + first_name = models.CharField(max_length=255, null=False, blank=False) + last_name = models.CharField(max_length=255, null=False, blank=False) preferred_name = models.CharField(max_length=255, null=True, blank=True) date_of_birth = models.DateField(null=True, blank=True) guardian_name = models.CharField(max_length=255, null=True, blank=True) diff --git a/bikeshop_project/registration/templates/member_form.html b/bikeshop_project/registration/templates/member_form.html index 319bcfb..8b88979 100644 --- a/bikeshop_project/registration/templates/member_form.html +++ b/bikeshop_project/registration/templates/member_form.html @@ -97,7 +97,7 @@
{{ form.first_name }} - + {% if form.first_name.errors %} {{ form.first_name.errors }} {% else %} @@ -106,7 +106,7 @@
{{ form.last_name }} - + {% if form.last_name.errors %} {{ form.last_name.errors }} {% else %} @@ -151,7 +151,7 @@
{{ form.post_code }} - + {% if form.post_code.errors %} {{ form.post_code.errors }} {% else %}