-
Notifications
You must be signed in to change notification settings - Fork 619
/
Copy pathlocal.py
78 lines (63 loc) · 2.22 KB
/
local.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
from .base import *
import os
DEBUG = True
ALLOWED_HOSTS = ['*']
INTERNAL_IPS = ['127.0.0.1']
# Set the path to the location of the content files for python.org
# For example,
# PYTHON_ORG_CONTENT_SVN_PATH = '/Users/flavio/working_copies/beta.python.org/build/data'
PYTHON_ORG_CONTENT_SVN_PATH = ''
DATABASES = {
'default': config(
'DATABASE_URL',
default='postgres:///pythondotorg',
cast=dj_database_url_parser
)
}
HAYSTACK_SEARCHBOX_SSL_URL = config(
'SEARCHBOX_SSL_URL',
default='http://127.0.0.1:9200/'
)
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.elasticsearch5_backend.Elasticsearch5SearchEngine',
'URL': HAYSTACK_SEARCHBOX_SSL_URL,
'INDEX_NAME': 'haystack',
},
}
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Set the local pep repository path to fetch PEPs from,
# or none to fallback to the tarball specified by PEP_ARTIFACT_URL.
PEP_REPO_PATH = config('PEP_REPO_PATH', default=None) # directory path or None
# Set the path to where to fetch PEP artifacts from.
# The value can be a local path or a remote URL.
# Ignored if PEP_REPO_PATH is set.
PEP_ARTIFACT_URL = os.path.join(BASE, 'peps/tests/peps.tar.gz')
# Use Dummy SASS compiler to avoid performance issues and remove the need to
# have a sass compiler installed at all during local development if you aren't
# adjusting the CSS at all. Comment this out or adjust it to suit your local
# environment needs if you are working with the CSS.
# PIPELINE['COMPILERS'] = (
# 'pydotorg.compilers.DummySASSCompiler',
# )
# Pass '-XssNNNNNk' to 'java' if you get 'java.lang.StackOverflowError' with
# yui-compressor.
# PIPELINE['YUI_BINARY'] = '/usr/bin/java -Xss200048k -jar /usr/share/yui-compressor/yui-compressor.jar'
INSTALLED_APPS += [
'debug_toolbar',
]
MIDDLEWARE += [
'debug_toolbar.middleware.DebugToolbarMiddleware',
]
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
REST_FRAMEWORK['DEFAULT_RENDERER_CLASSES'] += (
'rest_framework.renderers.BrowsableAPIRenderer',
)
# detailed info https://django-extensions.readthedocs.io/en/latest/graph_models.html
GRAPH_MODELS = {
'app_labels': ["sponsors"],
}