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) |