-
Notifications
You must be signed in to change notification settings - Fork 4
/
site_settings.py.example
75 lines (57 loc) · 2.21 KB
/
site_settings.py.example
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
import os.path
PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
SITE_DOMAIN = 'prestashop-sync.com'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'prestashop_sync',
'HOST': '',
'USER': 'prestashop_sync',
'PASSWORD': 'prestashop_sync',
}
}
#------------------Cache settings------------------------
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
#------------------ Celery settings----------------------
BROKER_URL = "django://"
CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler"
CELERY_SEND_EVENTS = True
CELERY_SEND_TASK_SENT_EVENT = True
CELERY_DISABLE_RATE_LIMITS = True
# Enables error e-mails.
CELERY_SEND_TASK_ERROR_EMAILS = True
CELERY_IMPORTS = ("presta.db_logging", "presta.utils.presta_api", "presta.utils.presta_api",
"presta.utils.shop_utils", "presta.tasks")
#----------------- Mail settings-------------------------
# E-mail address used as sender (From field).
SERVER_EMAIL = "no-reply@prestashop-sync.com"
# Mailserver configuration
EMAIL_HOST = "smtp.gmail.com"
EMAIL_PORT = 587
EMAIL_HOST_USER = "no-reply@prestashop-sync.com"
EMAIL_HOST_PASSWORD = ""
EMAIL_USE_TLS = True
#------------------Media folder--------------------------
MEDIA_ROOT = '/var/www/prestashop-sync/media'
MEDIA_URL = '/media/'
# Absolute path to the directory that holds media.
#STATIC_ROOT = os.path.join(PROJECT_DIR, 'static')
COMPRESS = True
COMPRESS_URL = STATIC_URL = '/static/'
COMPRESS_ROOT = os.path.join(PROJECT_DIR, 'static')
COMPRESS_CSS_FILTERS = ['compressor.filters.css_default.CssAbsoluteFilter', 'compressor.filters.cssmin.CSSMinFilter']
STATICFILES_DIRS = (
os.path.join(PROJECT_DIR, 'static'),
)
STATICFILES_FINDERS = ("django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
"compressor.finders.CompressorFinder")
GUEST_EMAIL = 'guest@prestashop-sync.com'
#-------------------Internal paths------------------------
LOG_PATH = os.path.join(PROJECT_DIR, 'logs')
LOG_FILENAME = os.path.join(LOG_PATH, 'output.log')