Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
django-template-engines
Advanced tools
Additional template engines for Django.
Generate :
In the settings, add:
INSTALLED_APPS = [
...
'template_engines',
]
...
# Put custom engines before DjangoTemplates Engine (Custom engines will search ONLY template ending with .pdf (weasyprint) .odt (odt) and .docx (docx)
TEMPLATES = [
{
'BACKEND': 'template_engines.backends.weasyprint.WeasyprintEngine',
'APP_DIRS': True,
'DIRS': [
],
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
{
'BACKEND': 'template_engines.backends.odt.OdtEngine',
...,
},
{
'BACKEND': 'template_engines.backends.docx.DocxEngine',
...,
},
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
https://django-template-engines.readthedocs.io/
image_url_loader
Features:
Fixes:
Improve:
Improve:
Update:
{% ... %}
are also cleaned.Other:
Optimize:
Add:
Update:
Fix:
Other:
AbstractEngine
becomes ZipAbstractEngine
and allow you to write
custom engines for zip base documentsFixes:
Fixes:
Fixes:
Fixes:
Fixes:
Update
requests
is no longer needed.
From now on, you can specify bold text.
Image loaders can now take width and height as dxa
, px
, pt
, in
, cm
and emu
.
Add:
docx_image_loader
).Add:
template_engines.backends.docx.DocxEngine
).template_engines.backends.odt.DocxTemplate
).template_engines.backends.abstract.AbstractEngine
).template_engines.backends.abstract.AbstractTemplate
).template_engines.backends.odt.OdtEngine
).template_engines.backends.odt.OdtTemplate
).odt_image_loader
).FAQs
Additional template engines for Django.
We found that django-template-engines demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.