mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 11:04:04 +03:00
Rename use_sentry_for_error_reporting to use_sentry
Rationale: consistency
This commit is contained in:
parent
53186d2697
commit
418b53bf77
|
@ -161,7 +161,7 @@ Answer the prompts with your own desired options_. For example::
|
|||
use_whitenoise [y]: n
|
||||
use_celery [n]: y
|
||||
use_mailhog [n]: n
|
||||
use_sentry_for_error_reporting [y]: y
|
||||
use_sentry [y]: y
|
||||
use_pycharm [n]: y
|
||||
windows [n]: n
|
||||
use_docker [y]: n
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
"use_compressor": "n",
|
||||
"use_celery": "n",
|
||||
"use_mailhog": "n",
|
||||
"use_sentry_for_error_reporting": "y",
|
||||
"use_sentry": "y",
|
||||
"use_whitenoise": "y",
|
||||
"use_heroku": "n",
|
||||
"use_travisci": "n",
|
||||
|
|
|
@ -78,7 +78,7 @@ use_celery [n]
|
|||
use_mailhog [n]
|
||||
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_.
|
||||
|
||||
use_whitenoise [y]
|
||||
|
|
|
@ -34,7 +34,7 @@ COMPRESS_ENABLED=
|
|||
# Gunicorn
|
||||
# ------------------------------------------------------------------------------
|
||||
WEB_CONCURRENCY=4
|
||||
{% if cookiecutter.use_sentry_for_error_reporting == 'y' %}
|
||||
{% if cookiecutter.use_sentry == 'y' %}
|
||||
# Sentry
|
||||
# ------------------------------------------------------------------------------
|
||||
DJANGO_SENTRY_DSN=
|
||||
|
|
|
@ -99,7 +99,7 @@ The email server will exit when you exit the Grunt task on the CLI with Ctrl+C.
|
|||
{% endif %}
|
||||
.. _mailhog: https://github.com/mailhog/MailHog
|
||||
{% endif %}
|
||||
{% if cookiecutter.use_sentry_for_error_reporting == "y" %}
|
||||
{% if cookiecutter.use_sentry == "y" %}
|
||||
|
||||
Sentry
|
||||
^^^^^^
|
||||
|
|
|
@ -176,7 +176,7 @@ INSTALLED_APPS = ['collectfast'] + INSTALLED_APPS # noqa F405
|
|||
AWS_PRELOAD_METADATA = True
|
||||
|
||||
{%- endif %}
|
||||
{% if cookiecutter.use_sentry_for_error_reporting == 'y' -%}
|
||||
{% if cookiecutter.use_sentry == 'y' -%}
|
||||
# raven
|
||||
# ------------------------------------------------------------------------------
|
||||
# https://docs.sentry.io/clients/python/integrations/django/
|
||||
|
|
|
@ -24,7 +24,7 @@ app_path = os.path.abspath(os.path.join(
|
|||
os.path.dirname(os.path.abspath(__file__)), os.pardir))
|
||||
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':
|
||||
from raven.contrib.django.raven_compat.middleware.wsgi import Sentry
|
||||
{%- 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
|
||||
# setting points here.
|
||||
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':
|
||||
application = Sentry(application)
|
||||
{%- endif %}
|
||||
|
|
|
@ -9,7 +9,7 @@ psycopg2==2.7.4 --no-binary psycopg2 # https://github.com/psycopg/psycopg2
|
|||
{%- if cookiecutter.use_whitenoise == 'n' %}
|
||||
Collectfast==0.6.2 # https://github.com/antonagestam/collectfast
|
||||
{%- endif %}
|
||||
{%- if cookiecutter.use_sentry_for_error_reporting == "y" %}
|
||||
{%- if cookiecutter.use_sentry == "y" %}
|
||||
raven==6.6.0 # https://github.com/getsentry/raven-python
|
||||
{%- endif %}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ class CeleryConfig(AppConfig):
|
|||
installed_apps = [app_config.name for app_config in apps.get_app_configs()]
|
||||
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'):
|
||||
# Celery signal registration
|
||||
{% if cookiecutter.use_pycharm == 'y' -%}
|
||||
|
|
Loading…
Reference in New Issue
Block a user