Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
molekpPublic archive
forked from robsontpm/templado

About

Templado is a simple Django app to upload your HTML report templates and generate those reports by filling the fields of form based on JSON template. Useful e.g. for managing invoices.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

Templado

Templado is a simple Django app to upload your HTML report templates and generate those reports by filling the fields of form based on JSON template.

Detailed documentation is in the "docs" directory.

Quick start

  1. Add "templado" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'bootstrap3',
        'templado',
    )
    
  2. Modify also settings with:

    FILE_UPLOAD_HANDLERS = (
        ...
        'django.core.files.uploadhandler.MemoryFileUploadHandler',
        'django.core.files.uploadhandler.TemporaryFileUploadHandler',
    )
    
    TEMPLATE_CONTEXT_PROCESSORS = (
        ...
        'django.contrib.auth.context_processors.auth',
        'django.core.context_processors.request',
    )
    
    '''
        set root folder on disk where files will be uploaded
        MEDIA_ROOT = '/media/DjangoApp/'
    '''
    TEMPLADO_REPORT_STATIC_DIR   = 'templado/static'
    TEMPLADO_REPORT_TEMPLATE_DIR = 'templado/templates'
    TEMPLADO_REPORT_FILES_DIR    = 'templado/reports'
    #with this config the files will go to {MEDIA_ROOT}/templado
    
  3. Include the templado URLconf in your project urls.py like this:

    url(r'^templado/', include('templado.urls', namespace='templado')),
    
  4. Run python manage.py migrate to create the templado models.

  5. Start the development server.

  6. Visit http://127.0.0.1:8000/templado/ to start using Templado app.

About

Templado is a simple Django app to upload your HTML report templates and generate those reports by filling the fields of form based on JSON template. Useful e.g. for managing invoices.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages