Skip to content

Commit 4751450

Browse files
committed
move from sample_project to speed_pypy
1 parent f3b5c84 commit 4751450

File tree

14 files changed

+98
-10
lines changed

14 files changed

+98
-10
lines changed

sample_project/settings.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# Django settings for a Codespeed project.
33
import os
44

5-
from codespeed.settings import *
6-
WEBSITE_NAME = "PyPy's Speed Center" # This name will be used in the reports RSS feed
7-
85
DEBUG = True
96

107
BASEDIR = os.path.abspath(os.path.dirname(__file__))
@@ -37,6 +34,8 @@
3734

3835
MEDIA_URL = '/media/'
3936

37+
ADMIN_MEDIA_PREFIX = '/static/admin/'
38+
4039
SECRET_KEY = 'as%n_m#)^vee2pe91^^@c))sl7^c6t-9r8n)_69%)2yt+(la2&'
4140

4241

@@ -84,11 +83,6 @@
8483
os.path.join(BASEDIR, 'static'),
8584
)
8685

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'
9286

93-
94-
from .local_settings import *
87+
# Codespeed settings that can be overwritten here.
88+
from codespeed.settings import *
File renamed without changes.

speed_pypy/settings.py

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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 *
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)