mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 12:04:03 +03:00
4f8cd89bb7
* Set CONN_MAX_AGE to 60 seconds -- fixes #710 Setting the value in the production config. * Get CONN_MAX_AGE from the environment, default to 60 in .env * Add test for CONN_MAX_AGE setting * Remove duplication in default value & test cleanup * Remove test for CONN_MAX_AGE value in settings
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
|
|
# PostgreSQL
|
|
POSTGRES_PASSWORD=mysecretpass
|
|
POSTGRES_USER=postgresuser
|
|
CONN_MAX_AGE=
|
|
|
|
# Domain name, used by caddy
|
|
DOMAIN_NAME={{ cookiecutter.domain_name }}
|
|
|
|
# General settings
|
|
# DJANGO_READ_DOT_ENV_FILE=True
|
|
DJANGO_ADMIN_URL=
|
|
DJANGO_SETTINGS_MODULE=config.settings.production
|
|
DJANGO_SECRET_KEY=CHANGEME!!!
|
|
DJANGO_ALLOWED_HOSTS=.{{ cookiecutter.domain_name }}
|
|
|
|
# AWS Settings
|
|
DJANGO_AWS_ACCESS_KEY_ID=
|
|
DJANGO_AWS_SECRET_ACCESS_KEY=
|
|
DJANGO_AWS_STORAGE_BUCKET_NAME=
|
|
|
|
# Used with email
|
|
DJANGO_MAILGUN_API_KEY=
|
|
DJANGO_SERVER_EMAIL=
|
|
MAILGUN_SENDER_DOMAIN=
|
|
|
|
# Security! Better to use DNS for this task, but you can use redirect
|
|
DJANGO_SECURE_SSL_REDIRECT=False
|
|
|
|
# django-allauth
|
|
DJANGO_ACCOUNT_ALLOW_REGISTRATION=True
|
|
{% if cookiecutter.use_sentry_for_error_reporting == 'y' -%}
|
|
# Sentry
|
|
DJANGO_SENTRY_DSN=
|
|
{% endif %}
|
|
{% if cookiecutter.use_opbeat == 'y' -%}
|
|
DJANGO_OPBEAT_ORGANIZATION_ID=
|
|
DJANGO_OPBEAT_APP_ID=
|
|
DJANGO_OPBEAT_SECRET_TOKEN=
|
|
{% endif %}
|
|
{% if cookiecutter.use_compressor == 'y' -%}
|
|
COMPRESS_ENABLED=
|
|
{% endif %}
|