mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
12 lines
No EOL
320 B
Python
12 lines
No EOL
320 B
Python
from django.conf import settings
|
|
|
|
def register_plugin_settings(settings=settings, name='defaults'):
|
|
settings.STATICFILES_DIRS += [
|
|
str(Path(PACKAGE_DIR) / f'plugins/{name}/static'),
|
|
]
|
|
|
|
settings.TEMPLATE_DIRS += [
|
|
str(Path(PACKAGE_DIR) / f'plugins/{name}/templates'),
|
|
]
|
|
|
|
print('REGISTERED PLUGIN SETTINGS', name) |