mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-03 21:24:32 +03:00
3f8aa26d0f
* Update generated project's .gitignore * Post-gen gitignore .env/ and .env * Fix linesep between gitignored entries * Persist `.env/**/*` files into cookiecutter-django's VCS * Rename .env/ to .envs/ * Reference the newly created .envs/**/.* files in local.yml * Reference the newly created .envs/**/.* files in production.yml * Delete .env.example * Refactor post-gen-project.py Closes #1299. * Implement production-dotenv-files-to-dotenv-file merge script * Create shared PyCharm Run Configuration for the automation script * Randomize POSTGRES_PASSWORD in ./envs/(.local|.production)/.postgres * Default POSTGRES_PASSWORD and POSTGRES_USER to random values * Fix jinja linebreaks in local.yml * Spaces in production.yml * Fix post-merge leftovers & set DJANGO_ADMIN_URL automatically * Prettify here and there * Fix FileNotFoundError * Leave a TODO in post_gen_hook.py * Introduce keep_local_envs_in_vcs option * Remove envs when not opted for * Inline pre_gen_project.py if-condition * Get rid of PROJECT_DIR_PATH in post_gen_project.py * Clean up the docs * Match copyright notices * Document envs ins and outs
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
# General
|
|
# ------------------------------------------------------------------------------
|
|
# DJANGO_READ_DOT_ENV_FILE=True
|
|
DJANGO_SETTINGS_MODULE=config.settings.production
|
|
DJANGO_SECRET_KEY=!!!SET DJANGO_SECRET_KEY!!!
|
|
DJANGO_ADMIN_URL=!!!SET DJANGO_ADMIN_URL!!!
|
|
DJANGO_ALLOWED_HOSTS=.{{ cookiecutter.domain_name }}
|
|
|
|
# Security
|
|
# ------------------------------------------------------------------------------
|
|
# TIP: better off using DNS, however, redirect is OK too
|
|
DJANGO_SECURE_SSL_REDIRECT=False
|
|
|
|
# Email
|
|
# ------------------------------------------------------------------------------
|
|
MAILGUN_API_KEY=
|
|
DJANGO_SERVER_EMAIL=
|
|
MAILGUN_DOMAIN=
|
|
|
|
# AWS
|
|
# ------------------------------------------------------------------------------
|
|
DJANGO_AWS_ACCESS_KEY_ID=
|
|
DJANGO_AWS_SECRET_ACCESS_KEY=
|
|
DJANGO_AWS_STORAGE_BUCKET_NAME=
|
|
|
|
# django-allauth
|
|
# ------------------------------------------------------------------------------
|
|
DJANGO_ACCOUNT_ALLOW_REGISTRATION=True
|
|
{% if cookiecutter.use_compressor == 'y' %}
|
|
# django-compressor
|
|
# ------------------------------------------------------------------------------
|
|
COMPRESS_ENABLED=
|
|
{% endif %}{% if cookiecutter.use_sentry_for_error_reporting == 'y' %}
|
|
# Sentry
|
|
# ------------------------------------------------------------------------------
|
|
DJANGO_SENTRY_DSN=
|
|
{% endif %}{% if cookiecutter.use_opbeat == 'y' %}
|
|
# opbeat
|
|
# ------------------------------------------------------------------------------
|
|
DJANGO_OPBEAT_ORGANIZATION_ID=
|
|
DJANGO_OPBEAT_APP_ID=
|
|
DJANGO_OPBEAT_SECRET_TOKEN=
|
|
{% endif %}
|