Template model.
Project description
django-template-model
Description
This application will allow you to store odt
, docx
or html
templates in
your database. You will be able to manipulate them through a view set, enriched
with an additional route to download the template.
Setup
Edit your settings file as follows:
INSTALLED_APPS = [
...
template_model,
]
Then your urls file:
urlpatterns = [
...
path('...', include('template_model.urls')),
]
Routes
.../document-template/
(name:template-list
, methods:['get', 'post']
).../document-template/{pk}/
(name:template-detail
, methods:['get', 'update', 'patch', 'delete']
).../document-template/{pk}/content/
(name:template-content
, methods:['get']
)
Versions
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
Template
model- Admin site
- View set with an additional route to download a template
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-template-model-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02269147b547631541e7a7ac04ecd6ce352859ac64faa2b811d06bbdb9c25f61 |
|
MD5 | b11a4e0161016313ff5ffefb70ba92be |
|
BLAKE2b-256 | 383bba994a9f4fd6152b401ba347cf8a73c3372dfb0dfc7766e91624fc449630 |