mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 14:39:32 +02:00
Plugins infrastructure
This commit is contained in:
parent
9964adfbf6
commit
d4028450a9
32 changed files with 1560 additions and 47 deletions
|
@ -23,6 +23,7 @@ import datetime
|
|||
from shutil import copyfile
|
||||
|
||||
sys.path.insert(0, os.path.abspath("../api"))
|
||||
sys.path.insert(0, os.path.abspath("../api/config"))
|
||||
|
||||
import funkwhale_api # NOQA
|
||||
|
||||
|
@ -30,9 +31,9 @@ FUNKWHALE_CONFIG = {
|
|||
"FUNKWHALE_URL": "mypod.funkwhale",
|
||||
"FUNKWHAL_PROTOCOL": "https",
|
||||
"DATABASE_URL": "postgres://localhost:5432/db",
|
||||
"AWS_ACCESS_KEY_ID": 'my_access_key',
|
||||
"AWS_SECRET_ACCESS_KEY": 'my_secret_key',
|
||||
"AWS_STORAGE_BUCKET_NAME": 'my_bucket',
|
||||
"AWS_ACCESS_KEY_ID": "my_access_key",
|
||||
"AWS_SECRET_ACCESS_KEY": "my_secret_key",
|
||||
"AWS_STORAGE_BUCKET_NAME": "my_bucket",
|
||||
}
|
||||
for key, value in FUNKWHALE_CONFIG.items():
|
||||
os.environ[key] = value
|
||||
|
@ -46,7 +47,7 @@ for key, value in FUNKWHALE_CONFIG.items():
|
|||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = ["sphinx.ext.graphviz", "sphinx.ext.autodoc"]
|
||||
autodoc_mock_imports = ["celery", "django_auth_ldap", "ldap"]
|
||||
autodoc_mock_imports = ["celery", "django_auth_ldap", "ldap", "persisting_theory", "rest_framework"]
|
||||
add_module_names = False
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ["_templates"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue