1
0
Fork 0
mirror of synced 2024-07-16 19:56:01 +12:00
ArchiveBox/archivebox/plugins/defaults/settings.py

15 lines
365 B
Python
Raw Normal View History

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