-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtranslation_settings.py
48 lines (30 loc) · 1.05 KB
/
translation_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
39
40
41
42
43
44
45
46
47
48
"""
Django settings for accordion project to be used in translation commands.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
BASE_DIR = os.path.dirname(__file__)
SECRET_KEY = os.getenv("DJANGO_SECRET", "open_secret")
# Application definition
INSTALLED_APPS = ("accordion",)
# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = "en-us"
TIME_ZONE = "UTC"
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = "/static/"
# statici18n
# https://django-statici18n.readthedocs.io/en/latest/settings.html
LOCALE_PATHS = [os.path.join(BASE_DIR, "accordion", "conf", "locale")]
STATICI18N_DOMAIN = "text"
STATICI18N_NAMESPACE = "AccordionI18n"
STATICI18N_PACKAGES = ("accordion",)
STATICI18N_ROOT = "accordion/public/js"
STATICI18N_OUTPUT_DIR = "translations"