forked from MTG/freesound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_settings.example.py
54 lines (39 loc) · 1.43 KB
/
local_settings.example.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
# -*- coding: utf-8 -*-
DEBUG = True
DISPLAY_DEBUG_TOOLBAR = True
ADMINS = (
('Your Email Here', '[email protected]'),
)
# If ALLOWED emails is not empty, only emails going to these destinations will be actually sent
ALLOWED_EMAILS = []
DATABASE_ENGINE = 'django.db.backends.postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'freesound' # Or path to database file if using sqlite3.
DATABASE_USER = 'freesound' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
DATABASE_PASSWORD = ''
# Make this unique, and don't share it with anybody.
SECRET_KEY = ''
EMAIL_HOST = 'localhost'
EMAIL_PORT = 2525
PROXIES = {} #'http': 'http://proxy.upf.edu:8080'}
RECAPTCHA_PRIVATE_KEY = ''
RECAPTCHA_PUBLIC_KEY = ''
AKISMET_KEY = ''
GOOGLE_API_KEY = ''
GOOGLE_ANALYTICS_KEY = ''
SOLR_URL = "http://localhost:8983/solr/fs2/"
SOLR_FORUM_URL = "http://localhost:8983/solr/forum/"
GEARMAN_JOB_SERVERS = ["localhost:4730"]
PLEDGIE_CAMPAIGN=14560
LOG_CLICKTHROUGH_DATA = False
#-------------------------------------------------------------------------------
# SOLR ranking weights
DEFAULT_SEARCH_WEIGHTS = {
'id' : 4,
'tag' : 4,
'description' : 3,
'username' : 1,
'pack_tokenized' : 2,
'original_filename' : 2
}