Configure your projectΒΆ
The project_settings.py
file is a Django settings module. You can override any
default Django/GLAMkit settings or configure apps installed via requirements
.txt
.
You will need to provide some basic information to configure your project.
You can do so with environment variables, or by editing the docker-cloud.yml
and project_settings.py
files.
All settings are optional, but you can provide:
BASE_SETTINGS_MODULE
tells GLAMkit to run indevelop
orproduction
mode.EMAIL_HOST
,EMAIL_HOST_PASSWORD
andEMAIL_HOST_USER
, so ICEkit can send emails (only inproduction
mode).We recommend Mailgun, but any SMTP credentials will do.
MASTER_PASSWORD
(only indevelop
mode) so you can login as any user with the same password.MEDIA_AWS_ACCESS_KEY_ID
,MEDIA_AWS_SECRET_ACCESS_KEY
andMEDIA_AWS_STORAGE_BUCKET_NAME
so GLAMkit can store file uploads in Amazon S3.The specified bucket should already exist, or the credentials provided should have permission to create buckets. This is especially important when deploying to ephemeral infrastructure, like Docker Cloud.
PGDATABASE
,PGHOST
,PGPASSWORD
,PGPORT
andPGUSER
, if you need to connect to provide credentials for your PostgreSQL database.We recommend Amazon RDS, especially when deploying to ephemeral infrastructure, like Docker Cloud.
SENTRY_DSN
, if you want to use Sentry for real-time error tracking.SITE_DOMAIN
andSITE_NAME
, so GLAMkit knows how to generate redirects correctly and knows what to call your site.