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.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
Built Distribution
Close
Hashes for django-template-model-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca6120f3053d6b816c277c7f181a1abb0b469ffb19a2d47c56f866d042609df5 |
|
MD5 | 659921a70353ecf2c4f0f47575133130 |
|
BLAKE2b-256 | b7f7dc11e1531fc962ead1d4a38734fa66f7afda764c41455aa8cff51b510e3d |
Close
Hashes for django_template_model-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85190701e684a8a8bacf3ab7c9424c6d27364f7a3f530cfccfc02a1c1f2aacf3 |
|
MD5 | 29f7c99afa42aa710a7a72575ff410e8 |
|
BLAKE2b-256 | 13b1e273f7af3fb07da6701b1054a073e4867934684ebbbd9e072634942c3ebf |