-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
35 lines (31 loc) · 1.15 KB
/
config.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
# -*- coding: utf-8 -*-
class Config(object):
DEBUG = False
TESTING = False
SITE_TITLE = u"Je me vide la tête"
DEFAULT_AUTHOR = 'max-k'
FLATPAGES_EXTENSION = '.md'
FLATPAGES_MARKDOWN_EXTENSIONS = ['codehilite', 'extra', 'toc']
FLATPAGES_AUTO_RELOAD = True
FREEZER_REMOVE_EXTRA_FILES = True
FREEZER_IGNORE_404_NOT_FOUND = True
PYGMENTS_THEME = 'friendly'
DEFAULT_LANGUAGE = "en"
AVAILABLE_LANGUAGES = ["en", "fr"]
LOCALES = {"en": 'en_US.UTF-8',
"fr": 'fr_FR.UTF-8'}
SHORT_DATE_FORMATS = {"en": '%b %d, %y %H:%M',
"fr": '%d %b %y %H:%M'}
LONG_DATE_FORMATS = {"en": '%B %d, %Y %H:%M',
"fr": '%d %B %Y %H:%M'}
FEED_SIZE_LIMIT = 15
LOCALIZED_FEED_TITLES = {"en": "Most recent articles [en]",
"fr": u"Articles les plus récents [fr]"}
DISPLAYED_CATEGORIES = ['Archlinux', 'Python', 'News', 'Misc']
DEFAULT_LOCATION = 'blog'
class ProductionConfig(Config):
FREEZER_BASE_URL = 'https://blog.max-k.org/'
class DevelopmentConfig(Config):
DEBUG = True
TESTING = True
FREEZER_RELATIVE_URLS = True