Skip to main content

Template model.

Project description

Build Status 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'])

Supported by

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