Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 178 lines (137 sloc) 6.497 kB
ded04eb @a8 added an example project similar to speedcenter
a8 authored
1 # -*- coding: utf-8 -*-
2 # Django settings for a speedcenter project.
3 import os
4
5 DEBUG = True
6 TEMPLATE_DEBUG = DEBUG
7
8 BASEDIR = os.path.dirname(__file__)
9
10 #: The directory which should contain checked out source repositories:
11 REPOSITORY_BASE_PATH = os.path.join(BASEDIR, "repos")
12
13 ADMINS = (
14 # ('Your Name', 'your_email@domain.com'),
15 )
16
17 MANAGERS = ADMINS
18 DATABASES = {
19 'default': {
20 'ENGINE': 'django.db.backends.sqlite3',
21 'NAME': os.path.join(BASEDIR, 'data.db'),
22 }
23 }
24
25 # Local time zone for this installation. Choices can be found here:
26 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
27 # although not all choices may be available on all operating systems.
28 # If running in a Windows environment this must be set to the same as your
29 # system time zone.
30 TIME_ZONE = 'America/Chicago'
31
32 # Language code for this installation. All choices can be found here:
33 # http://www.i18nguy.com/unicode/language-identifiers.html
34 LANGUAGE_CODE = 'en-us'
35
36 SITE_ID = 1
37
38 # If you set this to False, Django will make some optimizations so as not
39 # to load the internationalization machinery.
40 USE_I18N = False
41
42 # Absolute path to the directory that holds media.
43 # Example: "/home/media/media.lawrence.com/"
44 MEDIA_ROOT = os.path.join(BASEDIR, "media")
45
46 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
47 # trailing slash if there is a path component (optional in other cases).
48 # Examples: "http://media.lawrence.com", "http://example.com/media/"
49 MEDIA_URL = '/media/'
50
51 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
52 # trailing slash.
53 # Examples: "http://foo.com/media/", "/media/".
47d8505 @tobami Add an alternative virtualhost example and change admin_media_prefix
authored
54 ADMIN_MEDIA_PREFIX = '/admin_media/'
ded04eb @a8 added an example project similar to speedcenter
a8 authored
55
56 # Make this unique, and don't share it with anybody.
57 SECRET_KEY = 'as%n_m#)^vee2pe91^^@c))sl7^c6t-9r8n)_69%)2yt+(la2&'
58
59 # List of callables that know how to import templates from various sources.
60 TEMPLATE_LOADERS = (
bdaab1d @a8 replaced depricated template loader
a8 authored
61 'django.template.loaders.filesystem.Loader',
62 'django.template.loaders.app_directories.Loader',
63 # 'django.template.loaders.eggs.load_template_source',
ded04eb @a8 added an example project similar to speedcenter
a8 authored
64 )
65
66 MIDDLEWARE_CLASSES = (
67 'django.middleware.common.CommonMiddleware',
68 'django.contrib.sessions.middleware.SessionMiddleware',
69 'django.contrib.auth.middleware.AuthenticationMiddleware',
70 )
71
72 if DEBUG:
73 import traceback
74 import logging
66eaba0 @a8 white space cleanup re-added from 1933bfa92659c4efe19bcc0fa040c2cecaf…
a8 authored
75
ded04eb @a8 added an example project similar to speedcenter
a8 authored
76 # Define a class that logs unhandled errors
77 class LogUncatchedErrors:
78 def process_exception(self, request, exception):
79 logging.error("Unhandled Exception on request for %s\n%s" %
80 (request.build_absolute_uri(),
81 traceback.format_exc()))
82 # And add it to the middleware classes
83 MIDDLEWARE_CLASSES += ('settings.LogUncatchedErrors',)
66eaba0 @a8 white space cleanup re-added from 1933bfa92659c4efe19bcc0fa040c2cecaf…
a8 authored
84
ded04eb @a8 added an example project similar to speedcenter
a8 authored
85 # set shown level of logging output to debug
86 logging.basicConfig(level=logging.DEBUG)
87
88
89 ROOT_URLCONF = 'example.urls'
90
91 TEMPLATE_DIRS = (
92 os.path.join(os.path.dirname(__file__), 'templates'),
93 )
94
95 TEMPLATE_CONTEXT_PROCESSORS = (
96 'django.contrib.auth.context_processors.auth',
97 'django.contrib.messages.context_processors.messages',
98 'django.core.context_processors.debug',
99 'django.core.context_processors.i18n',
100 'django.core.context_processors.media',
d317759 @a8 added settings.STATIC_ROOT
a8 authored
101 'django.core.context_processors.static',
ded04eb @a8 added an example project similar to speedcenter
a8 authored
102 'django.core.context_processors.request',
103 )
104
105 INSTALLED_APPS = (
106 'django.contrib.auth',
107 'django.contrib.contenttypes',
108 'django.contrib.sessions',
109 #'django.contrib.sites',
110 'django.contrib.admin',
111 'django.contrib.staticfiles',
112 'codespeed',
53832ed @a8 made south a required Django app
a8 authored
113 'south'
ded04eb @a8 added an example project similar to speedcenter
a8 authored
114 )
115
116 STATIC_URL = '/static/'
117
d317759 @a8 added settings.STATIC_ROOT
a8 authored
118 STATIC_ROOT = os.path.join(BASEDIR, "sitestatic")
119
ef0014f @a8 reintroduced codespeed/settings.py, settings have to be overwritten i…
a8 authored
120 # Codespeed settings that can be overwritten here.
ded04eb @a8 added an example project similar to speedcenter
a8 authored
121 ## General default options ##
a6b36a0 @tobami Add custom PyPy homepage
authored
122 WEBSITE_NAME = "PyPy Speed Center" # This name will be used in the reports RSS feed
ded04eb @a8 added an example project similar to speedcenter
a8 authored
123
ef0014f @a8 reintroduced codespeed/settings.py, settings have to be overwritten i…
a8 authored
124 #DEF_ENVIRONMENT = None #Name of the environment which should be selected as default
ded04eb @a8 added an example project similar to speedcenter
a8 authored
125
126
a7aaa64 @tobami Custom PyPy settings
authored
127 DEF_BASELINE = {'executable': 'cpython', 'revision': '100'} # Which executable + revision should be default as a baseline
ded04eb @a8 added an example project similar to speedcenter
a8 authored
128 # Given as the name of the executable and commitid of the revision
129 # Example: defaultbaseline = {'executable': 'myexe', 'revision': '21'}
130
ef0014f @a8 reintroduced codespeed/settings.py, settings have to be overwritten i…
a8 authored
131 #TREND = 10 # Default value for the depth of the trend
ded04eb @a8 added an example project similar to speedcenter
a8 authored
132 # Used by reports for the latest runs and changes view
133
134 # Threshold that determines when a performance change over the last result is significant
a7aaa64 @tobami Custom PyPy settings
authored
135 CHANGE_THRESHOLD = 5.0
ded04eb @a8 added an example project similar to speedcenter
a8 authored
136
137 # Threshold that determines when a performance change
138 # over a number of revisions is significant
a7aaa64 @tobami Custom PyPy settings
authored
139 TREND_THRESHOLD = 6.0
ded04eb @a8 added an example project similar to speedcenter
a8 authored
140
f2f92cd @a8 mv static files, rm codespeed.settings
a8 authored
141 ## Changes view options ##
ef0014f @a8 reintroduced codespeed/settings.py, settings have to be overwritten i…
a8 authored
142 #DEF_EXECUTABLE = None # Executable that should be chosen as default in the changes view
f2f92cd @a8 mv static files, rm codespeed.settings
a8 authored
143 # Given as the name of the executable.
ded04eb @a8 added an example project similar to speedcenter
a8 authored
144 # Example: defaultexecutable = "myexe"
145
f2f92cd @a8 mv static files, rm codespeed.settings
a8 authored
146 ## Timeline view options ##
ef0014f @a8 reintroduced codespeed/settings.py, settings have to be overwritten i…
a8 authored
147 #DEF_BENCHMARK = "grid" # Default selected benchmark. Possible values:
f2f92cd @a8 mv static files, rm codespeed.settings
a8 authored
148 # "grid": will show the grid of plots
149 # "show_none": will just show a text message
150 # "mybench": will select benchmark "mybench"
151
152 #TIMELINE_BRANCHES = True # NOTE: Only the default branch is currently shown
153 # Get timeline results for specific branches
154 # Set to False if you want timeline plots and results only for trunk.
155
ded04eb @a8 added an example project similar to speedcenter
a8 authored
156 ## Comparison view options ##
ef0014f @a8 reintroduced codespeed/settings.py, settings have to be overwritten i…
a8 authored
157 #CHART_TYPE = 'normal bars' # The options are 'normal bars', 'stacked bars' and 'relative bars'
ded04eb @a8 added an example project similar to speedcenter
a8 authored
158
a7aaa64 @tobami Custom PyPy settings
authored
159 NORMALIZATION = True # True will enable normalization as the default selection
ded04eb @a8 added an example project similar to speedcenter
a8 authored
160 # in the Comparison view. The default normalization can be
161 # chosen in the defaultbaseline setting
162
ef0014f @a8 reintroduced codespeed/settings.py, settings have to be overwritten i…
a8 authored
163 #CHART_ORIENTATION = 'vertical' # 'vertical' or 'horizontal can be chosen as
ded04eb @a8 added an example project similar to speedcenter
a8 authored
164 # default chart orientation
165
a7aaa64 @tobami Custom PyPy settings
authored
166 COMP_EXECUTABLES = [('pypy-c-jit', 'L'), ('pypy-c', 'L')] # Which executable + revision should be checked as default
ded04eb @a8 added an example project similar to speedcenter
a8 authored
167 # Given as a list of tuples containing the
168 # name of an executable + commitid of a revision
169 # An 'L' denotes the last revision
170 # Example:
171 # COMP_EXECUTABLES = [
172 # ('myexe', '21df2423ra'),
173 # ('myexe', 'L'),]
f2f92cd @a8 mv static files, rm codespeed.settings
a8 authored
174
ba1fdcd @tobami Fix home page report query branch name
authored
175 #DEF_BRANCH = "default" # Defines the default branch to be used.
1891b55 @smarr Added DEF_BRANCH as option and used it on the timeline
smarr authored
176 # In git projects, this branch is usually be calles
177 # "master"
Something went wrong with that request. Please try again.