From c39a60fa9dfc79d2e2f27b705548fd981f23deb3 Mon Sep 17 00:00:00 2001 From: Jelmer Draaijer Date: Fri, 28 Aug 2020 09:52:11 +0200 Subject: [PATCH] Reference production.txt in local.txt for installing production requirements --- {{cookiecutter.project_slug}}/requirements/local.txt | 6 +----- {{cookiecutter.project_slug}}/requirements/production.txt | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/{{cookiecutter.project_slug}}/requirements/local.txt b/{{cookiecutter.project_slug}}/requirements/local.txt index 1b3b7fa04..d90317afd 100644 --- a/{{cookiecutter.project_slug}}/requirements/local.txt +++ b/{{cookiecutter.project_slug}}/requirements/local.txt @@ -1,12 +1,8 @@ -r base.txt +-r production.txt Werkzeug==1.0.1 # https://github.com/pallets/werkzeug ipdb==0.13.3 # https://github.com/gotcha/ipdb -{%- if cookiecutter.use_docker == 'y' %} -psycopg2==2.8.5 --no-binary psycopg2 # https://github.com/psycopg/psycopg2 -{%- else %} -psycopg2-binary==2.8.5 # https://github.com/psycopg/psycopg2 -{%- endif %} {%- if cookiecutter.use_async == 'y' %} watchgod==0.6 # https://github.com/samuelcolvin/watchgod {%- endif %} diff --git a/{{cookiecutter.project_slug}}/requirements/production.txt b/{{cookiecutter.project_slug}}/requirements/production.txt index ce493a3cc..d36adf426 100644 --- a/{{cookiecutter.project_slug}}/requirements/production.txt +++ b/{{cookiecutter.project_slug}}/requirements/production.txt @@ -3,7 +3,11 @@ -r base.txt gunicorn==20.0.4 # https://github.com/benoitc/gunicorn +{%- if cookiecutter.use_docker == 'y' %} psycopg2==2.8.5 --no-binary psycopg2 # https://github.com/psycopg/psycopg2 +{%- else %} +psycopg2-binary==2.8.5 # https://github.com/psycopg/psycopg2 +{%- endif %} {%- if cookiecutter.use_whitenoise == 'n' %} Collectfast==2.2.0 # https://github.com/antonagestam/collectfast {%- endif %}