Skip to main content

Template model.

Project description

Build Status PyPI version Maintainability codecov Python Version Django Version Rest Version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-template-model-1.0.0.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

django_template_model-1.0.0-py3-none-any.whl (13.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page