From e9adcdd1cf6e5812e2cecebfa42301032074ecd7 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 30 May 2016 18:49:53 +0200 Subject: [PATCH] move PDF letterhead path to env --- bornhack/settings/base.py | 2 ++ bornhack/settings/development.py | 1 - bornhack/settings/env.dist | 1 + bornhack/settings/production.py | 1 - 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bornhack/settings/base.py b/bornhack/settings/base.py index 97b698da..316b7e8a 100644 --- a/bornhack/settings/base.py +++ b/bornhack/settings/base.py @@ -105,3 +105,5 @@ COINIFY_API_KEY = env('COINIFY_API_KEY') COINIFY_API_SECRET = env('COINIFY_API_SECRET') PDF_ARCHIVE_PATH='/usr/local/www/pdf_archive/' + +LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', env('PDF_LETTERHEAD_FILENAME')) diff --git a/bornhack/settings/development.py b/bornhack/settings/development.py index f0dc71bc..a58764ff 100644 --- a/bornhack/settings/development.py +++ b/bornhack/settings/development.py @@ -17,4 +17,3 @@ DATABASES = { } EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' -LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', 'bornhack_2016_test_letterhead.pdf') diff --git a/bornhack/settings/env.dist b/bornhack/settings/env.dist index 2eb5071f..1a408135 100644 --- a/bornhack/settings/env.dist +++ b/bornhack/settings/env.dist @@ -13,3 +13,4 @@ EPAY_MD5_SECRET=something TICKET_CATEGORY_ID='' COINIFY_API_KEY='' COINIFY_API_SECRET='' +PDF_LETTERHEAD_FILENAME='' diff --git a/bornhack/settings/production.py b/bornhack/settings/production.py index 750c07b5..ca93b6ce 100644 --- a/bornhack/settings/production.py +++ b/bornhack/settings/production.py @@ -48,4 +48,3 @@ ADMINS = ( ('bornhack sysadm', 'sysadm@bornhack.org'), ) -LETTERHEAD_PDF_PATH = os.path.join(local_dir('static_src'), 'pdf', 'bornhack_2016_letterhead.pdf')