-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtranslation_settings.py
52 lines (35 loc) · 1.1 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
49
50
51
52
"""
Django settings for video_iframe 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 = (
'statici18n',
'video_iframe',
)
# 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, 'video_iframe', 'conf', 'locale')]
STATICI18N_DOMAIN = 'text'
STATICI18N_NAMESPACE = 'VideoIframeI18n'
STATICI18N_PACKAGES = (
'video_iframe',
)
STATICI18N_ROOT = 'video_iframe/public/js'
STATICI18N_OUTPUT_DIR = 'translations'