mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 03:54:02 +03:00
9a2f72773a
The app name wasn't displayed correctly on the new relic dashboard. Although `NEW_RELIC_APP_NAME` was set in `production.py`, the variable was not loaded *before* the newrelic agent was called. Since the new relic agent is loaded at a very low level, NEW_RELIC_APP_NAME has to be set before django settings are imported.
27 lines
731 B
Plaintext
27 lines
731 B
Plaintext
POSTGRES_PASSWORD=mysecretpass
|
|
POSTGRES_USER=postgresuser
|
|
|
|
DJANGO_ADMIN_URL=
|
|
DJANGO_SETTINGS_MODULE=config.settings.production
|
|
DJANGO_SECRET_KEY=CHANGEME!!!
|
|
DJANGO_ALLOWED_HOSTS=.{{ cookiecutter.domain_name }}
|
|
DJANGO_AWS_ACCESS_KEY_ID=
|
|
DJANGO_AWS_SECRET_ACCESS_KEY=
|
|
DJANGO_AWS_STORAGE_BUCKET_NAME=
|
|
DJANGO_MAILGUN_API_KEY=
|
|
DJANGO_MAILGUN_SERVER_NAME=
|
|
DJANGO_SERVER_EMAIL=
|
|
DJANGO_SECURE_SSL_REDIRECT=False
|
|
{% if cookiecutter.use_sentry == 'y' -%}
|
|
DJANGO_SENTRY_DSN=
|
|
{% endif %}
|
|
{% if cookiecutter.use_newrelic == 'y' -%}
|
|
NEW_RELIC_LICENSE_KEY=
|
|
NEW_RELIC_APP_NAME={{cookiecutter.repo_name}}
|
|
{% endif %}
|
|
{% if cookiecutter.use_opbeat == 'y' -%}
|
|
DJANGO_OPBEAT_ORGANIZATION_ID
|
|
DJANGO_OPBEAT_APP_ID
|
|
DJANGO_OPBEAT_SECRET_TOKEN
|
|
{% endif %}
|