1
0
Fork 0
mirror of synced 2024-06-14 08:25:21 +12:00
ArchiveBox/archivebox/plugins/defaults/settings.py
2024-01-24 02:15:02 -08:00

15 lines
365 B
Python

from pathlib import Path
from django.conf import settings
def register_plugin_settings(settings=settings, name='defaults'):
settings.STATICFILES_DIRS += [
str(Path(settings.PACKAGE_DIR) / f'plugins/{name}/static'),
]
settings.TEMPLATE_DIRS += [
str(Path(settings.PACKAGE_DIR) / f'plugins/{name}/templates'),
]
print('REGISTERED PLUGIN SETTINGS', name)