|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# Django settings for a Codespeed project. |
| 3 | +import os |
| 4 | + |
| 5 | +from codespeed.settings import * |
| 6 | +WEBSITE_NAME = "PyPy's Speed Center" # This name will be used in the reports RSS feed |
| 7 | + |
| 8 | +DEBUG = True |
| 9 | + |
| 10 | +BASEDIR = os.path.abspath(os.path.dirname(__file__)) |
| 11 | +TOPDIR = os.path.split(BASEDIR)[1] |
| 12 | + |
| 13 | +#: The directory which should contain checked out source repositories: |
| 14 | +REPOSITORY_BASE_PATH = os.path.join(BASEDIR, "repos") |
| 15 | + |
| 16 | +ADMINS = ( |
| 17 | + # ('Your Name', 'your_email@domain.com'), |
| 18 | +) |
| 19 | + |
| 20 | +MANAGERS = ADMINS |
| 21 | +DATABASES = { |
| 22 | + 'default': { |
| 23 | + 'ENGINE': 'django.db.backends.sqlite3', |
| 24 | + 'NAME': os.path.join(BASEDIR, 'data.db'), |
| 25 | + } |
| 26 | +} |
| 27 | + |
| 28 | +TIME_ZONE = 'America/Chicago' |
| 29 | + |
| 30 | +LANGUAGE_CODE = 'en-us' |
| 31 | + |
| 32 | +SITE_ID = 1 |
| 33 | + |
| 34 | +USE_I18N = False |
| 35 | + |
| 36 | +MEDIA_ROOT = os.path.join(BASEDIR, "media") |
| 37 | + |
| 38 | +MEDIA_URL = '/media/' |
| 39 | + |
| 40 | +SECRET_KEY = 'as%n_m#)^vee2pe91^^@c))sl7^c6t-9r8n)_69%)2yt+(la2&' |
| 41 | + |
| 42 | + |
| 43 | +MIDDLEWARE = ( |
| 44 | + 'django.middleware.common.CommonMiddleware', |
| 45 | + 'django.contrib.sessions.middleware.SessionMiddleware', |
| 46 | + 'django.middleware.csrf.CsrfViewMiddleware', |
| 47 | + 'django.contrib.auth.middleware.AuthenticationMiddleware', |
| 48 | + 'django.contrib.messages.middleware.MessageMiddleware', |
| 49 | +) |
| 50 | + |
| 51 | +ROOT_URLCONF = '{0}.urls'.format(TOPDIR) |
| 52 | + |
| 53 | + |
| 54 | +TEMPLATES = [ |
| 55 | + { |
| 56 | + 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
| 57 | + 'DIRS': [os.path.join(BASEDIR, 'templates')], |
| 58 | + 'APP_DIRS': True, |
| 59 | + 'OPTIONS': { |
| 60 | + 'context_processors': [ |
| 61 | + 'django.template.context_processors.debug', |
| 62 | + 'django.template.context_processors.request', |
| 63 | + 'django.contrib.auth.context_processors.auth', |
| 64 | + 'django.contrib.messages.context_processors.messages', |
| 65 | + ], |
| 66 | + }, |
| 67 | + }, |
| 68 | +] |
| 69 | + |
| 70 | +INSTALLED_APPS = ( |
| 71 | + 'django.contrib.auth', |
| 72 | + 'django.contrib.contenttypes', |
| 73 | + 'django.contrib.sessions', |
| 74 | + 'django.contrib.messages', |
| 75 | + 'django.contrib.admin', |
| 76 | + 'django.contrib.staticfiles', |
| 77 | + 'codespeed', |
| 78 | +) |
| 79 | + |
| 80 | + |
| 81 | +STATIC_URL = '/static/' |
| 82 | +STATIC_ROOT = os.path.join(BASEDIR, "sitestatic") |
| 83 | +STATICFILES_DIRS = ( |
| 84 | + os.path.join(BASEDIR, 'static'), |
| 85 | +) |
| 86 | + |
| 87 | +SHOW_REPORTS = False |
| 88 | +SHOW_HISTORICAL = True |
| 89 | +DEF_BASELINE = {'executable': 'cpython', 'revision': '2.6.2'} |
| 90 | +DEF_EXECUTABLE = 'pypy-c-jit' |
| 91 | +DEF_ENVIRONMENT = 'tannit' |
| 92 | + |
| 93 | + |
| 94 | +from .local_settings import * |
0 commit comments