For the Django project I'm working on, I need to allow the user to specify the path used in TEMPLATE_DIRS. This is done to implement selectable "topics." For instance:
TEMPLATE_DIRS = (
os.path.join(WEBSITE_ROOT, 'templates', THEME_NAME).replace('\\', '/'),
os.path.join(WEBSITE_ROOT, 'templates', 'default').replace('\\', '/'),
)
But the THEME_NAME variable must come from the database through the site administration.
Any ideas?
source
share