mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
15 lines
No EOL
365 B
Python
15 lines
No EOL
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) |