Skip to main content

Django template renderer for designers

Project description

Allow designers to work on your templates without having to run the Django development server, database etc.

Designer’s workflow:

  1. Pulls repo
  2. Edits template, makes it look pretty
  3. Runs manage.py command to render template and produce html file
  4. Points browser to file
  5. Views pretty rendered template in browser
  6. Repeats steps 2 and 3, refreshes browser
  7. Commits and pushes pretty templates

Note: To state the obvious, context variables are not rendered on page. View functions are not called. Context variables are often not needed when a desinger is viewing templates for design purposes.

Install

Install package:

pip install django-designer

Usage

Run:

$ ./manage.py render_template your_app/templates/home.html
file:///Users/you/Projects/your_project/your_app/templates/home_rendered.html

Copy-paste output into browser address bar and view rendered template.

Recommend you add *_rendered.html to your .gitignore.

Project details


Download files

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

Files for django-designer, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size django-designer-0.2.1.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page