~roadmr/isitdeployable/revision-disappeared-ohnoes

« back to all changes in this revision

Viewing changes to django_project/settings_build.py

  • Committer: Ricardo Kirkner
  • Date: 2017-07-20 16:27:02 UTC
  • mto: This revision was merged to the branch mainline in revision 216.
  • Revision ID: ricardo.kirkner@canonical.com-20170720162702-4l96dkt26zllq1e3
use custom build settings so that collectstatic can be run while building the container

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import os
 
2
 
 
3
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
4
 
 
5
os.environ.setdefault(
 
6
    'DPA_LOGS_DIR',
 
7
    os.path.abspath(os.path.join(BASE_DIR, 'logs')))
 
8
 
 
9
from django_project.settings_base import *  # noqa
 
10
 
 
11
DATABASES = {}
 
12
SECRET_KEY = 'build-secret-key'