зеркало из https://github.com/mozilla/pontoon.git
Fix bug 1699381: make the media folder configurable (#1901)
Also remove media/ subfolders.
This commit is contained in:
Родитель
846013e9dd
Коммит
6560c929b0
|
@ -145,6 +145,10 @@ you create:
|
||||||
``MANUAL_SYNC``
|
``MANUAL_SYNC``
|
||||||
Optional. Enable Sync button in project Admin.
|
Optional. Enable Sync button in project Admin.
|
||||||
|
|
||||||
|
``MEDIA_ROOT``
|
||||||
|
Optional. The absolute path of the "media" folder the projects will be
|
||||||
|
cloned into (it is located next to the "pontoon" Python module by default).
|
||||||
|
|
||||||
``MICROSOFT_TRANSLATOR_API_KEY``
|
``MICROSOFT_TRANSLATOR_API_KEY``
|
||||||
Optional. Set your `Microsoft Translator API key`_ to use machine translation
|
Optional. Set your `Microsoft Translator API key`_ to use machine translation
|
||||||
by Microsoft.
|
by Microsoft.
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Ignore everything in this directory
|
|
||||||
*
|
|
||||||
# Except this file
|
|
||||||
!.gitignore
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Ignore everything in this directory
|
|
||||||
*
|
|
||||||
# Except this file
|
|
||||||
!.gitignore
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Ignore everything in this directory
|
|
||||||
*
|
|
||||||
# Except this file
|
|
||||||
!.gitignore
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
# Ignore everything in this directory
|
|
||||||
*
|
|
||||||
# Except this file
|
|
||||||
!.gitignore
|
|
||||||
|
|
|
@ -511,7 +511,7 @@ SITE_ID = 1
|
||||||
|
|
||||||
# Absolute path to the directory that holds media.
|
# Absolute path to the directory that holds media.
|
||||||
# Example: "/home/media/media.lawrence.com/"
|
# Example: "/home/media/media.lawrence.com/"
|
||||||
MEDIA_ROOT = path("media")
|
MEDIA_ROOT = os.environ.get("MEDIA_ROOT", path("media"))
|
||||||
|
|
||||||
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
||||||
# trailing slash if there is a path component (optional in other cases).
|
# trailing slash if there is a path component (optional in other cases).
|
||||||
|
|
Загрузка…
Ссылка в новой задаче