Skip to main content

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

Project description

=====
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',
)

from django.conf import settings
REPORT_STATIC_DIR = os.path.join(os.path.join(settings.MEDIA_ROOT, 'media'), 'report-static')

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.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
templado-0.5.tar.gz (514.1 kB) Copy SHA256 hash SHA256 Source None May 12, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page