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

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.

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-0.1.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

django_template_model-0.1.0-py3-none-any.whl (11.4 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