Rename use_sentry_for_error_reporting to use_sentry

Rationale: consistency
This commit is contained in:
Nikita P. Shupeyko 2018-04-03 12:12:26 +03:00
parent 53186d2697
commit 418b53bf77
9 changed files with 10 additions and 10 deletions

View File

@ -161,7 +161,7 @@ Answer the prompts with your own desired options_. For example::
use_whitenoise [y]: n use_whitenoise [y]: n
use_celery [n]: y use_celery [n]: y
use_mailhog [n]: n use_mailhog [n]: n
use_sentry_for_error_reporting [y]: y use_sentry [y]: y
use_pycharm [n]: y use_pycharm [n]: y
windows [n]: n windows [n]: n
use_docker [y]: n use_docker [y]: n

View File

@ -35,7 +35,7 @@
"use_compressor": "n", "use_compressor": "n",
"use_celery": "n", "use_celery": "n",
"use_mailhog": "n", "use_mailhog": "n",
"use_sentry_for_error_reporting": "y", "use_sentry": "y",
"use_whitenoise": "y", "use_whitenoise": "y",
"use_heroku": "n", "use_heroku": "n",
"use_travisci": "n", "use_travisci": "n",

View File

@ -78,7 +78,7 @@ use_celery [n]
use_mailhog [n] use_mailhog [n]
Indicates whether the project should be configured to use MailHog_. Indicates whether the project should be configured to use MailHog_.
use_sentry_for_error_reporting [n] use_sentry [n]
Indicates whether the project should be configured to use Sentry_. Indicates whether the project should be configured to use Sentry_.
use_whitenoise [y] use_whitenoise [y]

View File

@ -34,7 +34,7 @@ COMPRESS_ENABLED=
# Gunicorn # Gunicorn
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
WEB_CONCURRENCY=4 WEB_CONCURRENCY=4
{% if cookiecutter.use_sentry_for_error_reporting == 'y' %} {% if cookiecutter.use_sentry == 'y' %}
# Sentry # Sentry
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
DJANGO_SENTRY_DSN= DJANGO_SENTRY_DSN=

View File

@ -99,7 +99,7 @@ The email server will exit when you exit the Grunt task on the CLI with Ctrl+C.
{% endif %} {% endif %}
.. _mailhog: https://github.com/mailhog/MailHog .. _mailhog: https://github.com/mailhog/MailHog
{% endif %} {% endif %}
{% if cookiecutter.use_sentry_for_error_reporting == "y" %} {% if cookiecutter.use_sentry == "y" %}
Sentry Sentry
^^^^^^ ^^^^^^

View File

@ -176,7 +176,7 @@ INSTALLED_APPS = ['collectfast'] + INSTALLED_APPS # noqa F405
AWS_PRELOAD_METADATA = True AWS_PRELOAD_METADATA = True
{%- endif %} {%- endif %}
{% if cookiecutter.use_sentry_for_error_reporting == 'y' -%} {% if cookiecutter.use_sentry == 'y' -%}
# raven # raven
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# https://docs.sentry.io/clients/python/integrations/django/ # https://docs.sentry.io/clients/python/integrations/django/

View File

@ -24,7 +24,7 @@ app_path = os.path.abspath(os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.pardir)) os.path.dirname(os.path.abspath(__file__)), os.pardir))
sys.path.append(os.path.join(app_path, '{{ cookiecutter.project_slug }}')) sys.path.append(os.path.join(app_path, '{{ cookiecutter.project_slug }}'))
{% if cookiecutter.use_sentry_for_error_reporting == 'y' -%} {% if cookiecutter.use_sentry == 'y' -%}
if os.environ.get('DJANGO_SETTINGS_MODULE') == 'config.settings.production': if os.environ.get('DJANGO_SETTINGS_MODULE') == 'config.settings.production':
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
{%- endif %} {%- endif %}
@ -39,7 +39,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")
# file. This includes Django's development server, if the WSGI_APPLICATION # file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here. # setting points here.
application = get_wsgi_application() application = get_wsgi_application()
{% if cookiecutter.use_sentry_for_error_reporting == 'y' -%} {% if cookiecutter.use_sentry == 'y' -%}
if os.environ.get('DJANGO_SETTINGS_MODULE') == 'config.settings.production': if os.environ.get('DJANGO_SETTINGS_MODULE') == 'config.settings.production':
application = Sentry(application) application = Sentry(application)
{%- endif %} {%- endif %}

View File

@ -9,7 +9,7 @@ psycopg2==2.7.4 --no-binary psycopg2 # https://github.com/psycopg/psycopg2
{%- if cookiecutter.use_whitenoise == 'n' %} {%- if cookiecutter.use_whitenoise == 'n' %}
Collectfast==0.6.2 # https://github.com/antonagestam/collectfast Collectfast==0.6.2 # https://github.com/antonagestam/collectfast
{%- endif %} {%- endif %}
{%- if cookiecutter.use_sentry_for_error_reporting == "y" %} {%- if cookiecutter.use_sentry == "y" %}
raven==6.6.0 # https://github.com/getsentry/raven-python raven==6.6.0 # https://github.com/getsentry/raven-python
{%- endif %} {%- endif %}

View File

@ -24,7 +24,7 @@ class CeleryConfig(AppConfig):
installed_apps = [app_config.name for app_config in apps.get_app_configs()] installed_apps = [app_config.name for app_config in apps.get_app_configs()]
app.autodiscover_tasks(lambda: installed_apps, force=True) app.autodiscover_tasks(lambda: installed_apps, force=True)
{% if cookiecutter.use_sentry_for_error_reporting == 'y' -%} {% if cookiecutter.use_sentry == 'y' -%}
if hasattr(settings, 'RAVEN_CONFIG'): if hasattr(settings, 'RAVEN_CONFIG'):
# Celery signal registration # Celery signal registration
{% if cookiecutter.use_pycharm == 'y' -%} {% if cookiecutter.use_pycharm == 'y' -%}