-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.py
38 lines (29 loc) · 945 Bytes
/
settings.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
# -*- encoding: utf-8 -*-
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
# Force style names to appear in translation
_("Original")
_("Cute")
_("Dark")
def get(key, default):
return getattr(settings, key, default)
LASANA_NAME = get('LASANA_NAME', u'Lasaña')
LASANA_DEFAULT_STYLE = get('LASANA_DEFAULT_STYLE', 'original')
LASANA_ALLOW_CHANGE_STYLE = get('LASANA_ALLOW_CHANGE_STYLE', True)
LASANA_USE_X_SENDFILE = get('LASANA_USE_X_SENDFILE', False)
LASANA_UPLOAD_ROOT = get('LASANA_UPLOAD_ROOT', './uploads')
LASANA_NGINX_ACCEL_REDIRECT_BASE_URL = get('LASANA_NGINX_ACCEL_REDIRECT_BASE_URL', '/__uploads/')
# Forbid crawlers to index user content
LASANA_BLOCK_CRAWLERS = get('LASANA_BLOCK_CRAWLERS', [
'Googlebot',
'YandexBot',
'YandexImages',
'AhrefsBot',
'Slurp', # Yahoo
'msnbot-media',
'bingbot',
'rogerbot',
'finbot',
'MJ12bot',
'spbot',
])