This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
settings_local.py.template
64 lines (52 loc) · 2.11 KB
/
settings_local.py.template
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
# Local settings. Copy this file to settings_local.py and modify, but do not add to repository.
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "set to some long unique string"
# ADMINS = (
# ('Ad Min', '[email protected]'),
# )
# OAUTH Redirect URI
OAUTH_REDIRECT_URI = 'http://localhost:8000/en/'
DATABASES = {
"default": {
"CONN_MAX_AGE": 0,
"ENGINE": "django.db.backends.mysql", # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
"HOST": "", # Set to empty string for localhost. Not used with sqlite3.
"NAME": "python_blogs", # Or path to database file if using sqlite3.
"PASSWORD": "root", # Not used with sqlite3.
"PORT": "", # Set to empty string for default. Not used with sqlite3.
"USER": "root", # Not used with sqlite3.
}
}
# EMAIL CONFIGURATION
# ------------------------------------------------------------------------------
# See: https://docs.djangoproject.com/en/2.1/ref/settings/#email
# TODO: Update it with real settings
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_SUBJECT_PREFIX = "[Python-GSoC] "
EMAIL_USE_TLS = False
SERVER_EMAIL = "[email protected]"
EMAIL_HOST = "localhost"
EMAIL_PORT = 25
# EMAIL_HOST_USER = ""
# EMAIL_HOST_PASSWORD = ""
REPLY_EMAIL = "[email protected]"
# Admins
ADMINS = (("GSoC Admins", "[email protected]"))
# reCAPTCHA settings
# update the `RECAPTCHA_PUBLIC_KEY` in `/static/js/recaptcha.js` manually
RECAPTCHA_PRIVATE_KEY = "6LcL0q8UAAAAAFPz31u0Ce9gnbEjhFou19c4MhnQ"
RECAPTCHA_PUBLIC_KEY = "6LcL0q8UAAAAALYynEklThsKgSVZ2B1kubc-Y6br"
# GITHUB SETTINGS
STATIC_SITE_REPO = "python-gsoc/python-gsoc.github.io"
GITHUB_ACCESS_TOKEN = ""
GITHUB_FILE_PATH = {"deadlines.html": "deadlines.html", "ideas.html": "ideas.html"}
# memcached use django.core.cache.backends.memcached.PyLibMCCache
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
"LOCATION": "127.0.0.1:11211",
}
}