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
0.0.1
Template
model- Admin site
- View set with an additional route to download a template
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.1.1
This package is compatible with Django>=2.1.0,<3.0.0
et djangorestframework>=3.8.0,<3.11.0
.
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-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 348b114271cfdd91a5d7d36f2587cfeada439fbddedf28bc9cc3379865b0b900 |
|
MD5 | 0225012fcffb6a43e7bdac7b9ce1f1fb |
|
BLAKE2b-256 | ce12dcb268f329e3bf45797dcd8c4d4a28caab7e959dec86ab4f24d862c636aa |
Close
Hashes for django_template_model-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5a2ce7c456056cfeebe958dfedc8e6133a3e1ab3483c48375f951da597285f7 |
|
MD5 | 19a21117f8de84a504fc54eab0cc0235 |
|
BLAKE2b-256 | e4297866127b932e1cab506b63295744d1047364de827ce9df85f97a2f012629 |