From e00c461cd8d5a219f5585516aba8e29a13857b29 Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Sun, 1 Apr 2018 15:54:42 +0200 Subject: [PATCH] fix --- Dockerfile | 4 +--- settings.py | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f699780..c5eb4eb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,4 @@ RUN gulp build # RUN DJANGO_MODE=build python manage.py collectstatic --noinput -# - -RUN DJANGO_MODE=build python manage.py rebuild_index --noinput \ No newline at end of file +# \ No newline at end of file diff --git a/settings.py b/settings.py index 277cde9..7e7f4b6 100644 --- a/settings.py +++ b/settings.py @@ -39,6 +39,11 @@ MIDDLEWARE_CLASSES.extend([ # add your own middlewares here ]) +MIGRATION_COMMANDS = [ + 'python manage.py migrate --noinput', + 'python manage.py rebuild_index --noinput' +] + TEMPLATES[0]['OPTIONS']['context_processors'] += [ 'project.context_processors.search_form', 'project.context_processors.notification',