From 962f93116f4dfc926e463104affe1eb15349a8f8 Mon Sep 17 00:00:00 2001 From: liangliangyy Date: Wed, 25 Jul 2018 10:41:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=20RAVEN=5FCONFIG=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DjangoBlog/settings.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/DjangoBlog/settings.py b/DjangoBlog/settings.py index af58247..c04a09c 100644 --- a/DjangoBlog/settings.py +++ b/DjangoBlog/settings.py @@ -11,7 +11,6 @@ https://docs.djangoproject.com/en/1.10/ref/settings/ """ import sys import os -import raven # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -35,12 +34,6 @@ ALLOWED_HOSTS = ['*', 'www.lylinux.net', '127.0.0.1', 'example.com'] SITE_ROOT = os.path.dirname(os.path.abspath(__file__)) SITE_ROOT = os.path.abspath(os.path.join(SITE_ROOT, '../')) -RAVEN_CONFIG = { - 'dsn': os.environ.get('SENTRY_DSN'), - # If you are using git, you can also automatically configure the - # release based on the git info. - 'release': raven.fetch_git_sha(os.path.abspath(SITE_ROOT)), -} INSTALLED_APPS = [ # 'django.contrib.admin',