django-template-model
Description
This application will allow you to store templates in your database, and discovering with any Template Engine
Setup
Edit your settings file as follows:
INSTALLED_APPS = [
...
template_model,
]
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [ # your template dirs here
],
'APP_DIRS': False, # Disable auto discovering
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.request',
],
'loaders': [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# add loader here if you want to use it with this backend
'template_model.loader.Loader',
],
},
},
Versions
1.0.6 (2020-09-09)
- Support django 3.1
1.0.5 (2020-06-09)
- Simplify rendering
1.0.4 (2020-06-08)
- Handle text or binary based templates (Compatibility with django-template-engines)
1.0.3 (2020-06-05)
- Delete views / urls and useless restframework dependencies
- Now with loader config, Template are discoverable like any other template
1.0.2 (2020-06-05)
- Add python 3.8 and django 3.0 support
- Add loader to handle Django Template Engine support
1.0.1 (2019-09-24)
Update:
- mimetype and magic are no longer used
1.0.0
From now on, Template model contains:
- a name (
name), - a mime type (
mime_type), - a file (
template_file), - the date of its creation (
added), - the date of its last update (
updated).
0.1.1
This package is compatible with Django>=2.1.0,<3.0.0 et djangorestframework>=3.8.0,<3.11.0.
0.1.0
From now on, Template model contains:
- a name,
- a format,
- a content,
- the date of its creation,
- the date of its last update.
0.0.1
Templatemodel- Admin site
- View set with an additional route to download a template
Metadata
Release files for django-template-model 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-template-model-1.0.6.tar.gz | 7.2 kB | Without provenance | Details for django-template-model-1.0.6.tar.gz |
Release files / django-template-model-1.0.6.tar.gz
| Download URL | django-template-model-1.0.6.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
319b1b83bc4ec98f9d34612f82592c9faacc90b44db73dd943649b1c5dbd809b
|
|
BLAKE2b-256 checksum How to use checksums |
004828b12aef056716f92f88577cfaa5d1e7c6d1d17e907629fbea56cda253cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.10
|
Security for django-template-model 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.