You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not really a Issue, but more a feature: Allow absolute path for template odt, as I would like to not use a template from template folder.
One might be able to get a file from a Model FileField and use it as the odt model. This may be accomplished by trying to get the template from the provided path first, if it fails, try loading from the template folder (or vice versa).
I'll try to implement this on my fork and pull request it later.
Thanks for this awesome project, by the way. Also saw a nice jabber related project of yours. I am also interested on that one as I have some solution that sends. I'll test it later against the latest Spark Server.
The text was updated successfully, but these errors were encountered:
The idea is quite reasonable, but it's achievable right now without altering the code. If you want to serve templates outside your Django installation path (which can be the epic security hole btw), you can just configure the filesystem loader's DIRS setting appropriately:
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [MEDIA_ROOT], # allow templates to be found among the uploaded files
}]
Please let me know what do you think about this way of tackling the problem. Does it work for you?
In regard to django-jabber - sure, give it a go, I'd be happy to hear some suggestions from you. We have it running in production against the Openfire for several years, so far so good.
Not really a Issue, but more a feature: Allow absolute path for template odt, as I would like to not use a template from template folder.
One might be able to get a file from a Model FileField and use it as the odt model. This may be accomplished by trying to get the template from the provided path first, if it fails, try loading from the template folder (or vice versa).
I'll try to implement this on my fork and pull request it later.
Thanks for this awesome project, by the way. Also saw a nice jabber related project of yours. I am also interested on that one as I have some solution that sends. I'll test it later against the latest Spark Server.
The text was updated successfully, but these errors were encountered: