11# -*- coding: utf-8 -*-
2- # Django settings for a speedcenter project.
2+ # Django settings for a Codespeed project.
33import os
44
55DEBUG = True
2323 }
2424}
2525
26- # Local time zone for this installation. Choices can be found here:
27- # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
28- # although not all choices may be available on all operating systems.
29- # If running in a Windows environment this must be set to the same as your
30- # system time zone.
3126TIME_ZONE = 'America/Chicago'
3227
33- # Language code for this installation. All choices can be found here:
34- # http://www.i18nguy.com/unicode/language-identifiers.html
3528LANGUAGE_CODE = 'en-us'
3629
3730SITE_ID = 1
3831
39- # If you set this to False, Django will make some optimizations so as not
40- # to load the internationalization machinery.
4132USE_I18N = False
4233
43- # Absolute path to the directory that holds media.
44- # Example: "/home/media/media.lawrence.com/"
4534MEDIA_ROOT = os .path .join (BASEDIR , "media" )
4635
47- # URL that handles the media served from MEDIA_ROOT. Make sure to use a
48- # trailing slash if there is a path component (optional in other cases).
49- # Examples: "http://media.lawrence.com", "http://example.com/media/"
5036MEDIA_URL = '/media/'
5137
52- # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
53- # trailing slash.
54- # Examples: "http://foo.com/media/", "/media/".
5538ADMIN_MEDIA_PREFIX = '/static/admin/'
5639
5740with open (os .path .join (BASEDIR , 'secret_key' )) as f :
5841 SECRET_KEY = f .read ().strip ()
5942
60- # List of callables that know how to import templates from various sources.
6143TEMPLATE_LOADERS = (
6244 'django.template.loaders.filesystem.Loader' ,
6345 'django.template.loaders.app_directories.Loader' ,
64- # 'django.template.loaders.eggs.load_template_source',
6546)
6647
6748MIDDLEWARE_CLASSES = (
@@ -111,10 +92,8 @@ def process_exception(self, request, exception):
11192 'django.contrib.admin' ,
11293 'django.contrib.staticfiles' ,
11394 'codespeed' ,
114- 'south' ,
11595 'gunicorn' ,
11696)
117- SOUTH_TESTS_MIGRATE = False
11897
11998STATIC_URL = '/static/'
12099STATIC_ROOT = os .path .join (BASEDIR , "sitestatic" )
@@ -124,121 +103,3 @@ def process_exception(self, request, exception):
124103
125104# Codespeed settings that can be overwritten here.
126105from codespeed .settings import *
127-
128- ## General default options ##
129- WEBSITE_NAME = "MySpeedSite" # This name will be used in the reports RSS feed
130-
131- #DEF_ENVIRONMENT = None #Name of the environment which should be selected as default
132-
133-
134- #DEF_BASELINE = None # Which executable + revision should be default as a baseline
135- # Given as the name of the executable and commitid of the revision
136- # Example: defaultbaseline = {'executable': 'myexe', 'revision': '21'}
137-
138- #TREND = 10 # Default value for the depth of the trend
139- # Used by reports for the latest runs and changes view
140-
141- # Threshold that determines when a performance change over the last result is significant
142- #CHANGE_THRESHOLD = 3.0
143-
144- # Threshold that determines when a performance change
145- # over a number of revisions is significant
146- #TREND_THRESHOLD = 5.0
147-
148- ## Changes view options ##
149- #DEF_EXECUTABLE = None # Executable that should be chosen as default in the changes view
150- # Given as the name of the executable.
151- # Example: defaultexecutable = "myexe"
152-
153- #SHOW_AUTHOR_EMAIL_ADDRESS = True # Whether to show the authors email address in the
154- # changes log
155-
156- ## Timeline view options ##
157- #DEF_BENCHMARK = "grid" # Default selected benchmark. Possible values:
158- # "grid": will show the grid of plots
159- # "show_none": will just show a text message
160- # "mybench": will select benchmark "mybench"
161-
162- #DEF_TIMELINE_LIMIT = 50 # Default number of revisions to be plotted
163- # Possible values 10,50,200,1000
164-
165- #TIMELINE_BRANCHES = True # NOTE: Only the default branch is currently shown
166- # Get timeline results for specific branches
167- # Set to False if you want timeline plots and results only for trunk.
168-
169- ## Comparison view options ##
170- #CHART_TYPE = 'normal bars' # The options are 'normal bars', 'stacked bars' and 'relative bars'
171-
172- #NORMALIZATION = False # True will enable normalization as the default selection
173- # in the Comparison view. The default normalization can be
174- # chosen in the defaultbaseline setting
175-
176- #CHART_ORIENTATION = 'vertical' # 'vertical' or 'horizontal can be chosen as
177- # default chart orientation
178-
179- #COMP_EXECUTABLES = None # Which executable + revision should be checked as default
180- # Given as a list of tuples containing the
181- # name of an executable + commitid of a revision
182- # An 'L' denotes the last revision
183- # Example:
184- # COMP_EXECUTABLES = [
185- # ('myexe', '21df2423ra'),
186- # ('myexe', 'L'),]
187-
188- #DEF_BRANCH = "default" # Defines the default branch to be used.
189- # In git projects, this branch is usually be calles
190- # "master"
191-
192- # FIXME: Copied from Django docs (and pared down a bit)
193- # This is just enough to make gunicorn happy
194- LOGGING = {
195- 'version' : 1 ,
196- 'disable_existing_loggers' : True ,
197- 'formatters' : {
198- 'verbose' : {
199- 'format' : '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
200- },
201- 'simple' : {
202- 'format' : '%(levelname)s %(message)s'
203- },
204- },
205- # 'filters': {
206- # 'special': {
207- # '()': 'project.logging.SpecialFilter',
208- # 'foo': 'bar',
209- # }
210- # },
211- 'handlers' : {
212- 'null' : {
213- 'level' : 'DEBUG' ,
214- 'class' : 'django.utils.log.NullHandler' ,
215- },
216- 'console' : {
217- 'level' : 'DEBUG' ,
218- 'class' : 'logging.StreamHandler' ,
219- 'formatter' : 'simple'
220- },
221- 'mail_admins' : {
222- 'level' : 'ERROR' ,
223- 'class' : 'django.utils.log.AdminEmailHandler' ,
224- # 'filters': ['special']
225- }
226- },
227- 'loggers' : {
228- 'django' : {
229- 'handlers' : ['null' ],
230- 'propagate' : True ,
231- 'level' : 'INFO' ,
232- },
233- 'django.request' : {
234- 'handlers' : ['mail_admins' ],
235- 'level' : 'ERROR' ,
236- 'propagate' : False ,
237- },
238- # 'myproject.custom': {
239- # 'handlers': ['console', 'mail_admins'],
240- # 'level': 'INFO',
241- # 'filters': ['special']
242- # }
243- }
244- }
0 commit comments