Skip to main content

django-designer

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.

Metadata

Release files for django-designer 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-designer 0.2.1
File Size Uploaded
django-designer-0.2.1.tar.gz 1.9 kB Details

Release files / django-designer-0.2.1.tar.gz

Download URL django-designer-0.2.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
29134c83705f7380caeef95a289ae2e71443603f8df75416c953ca7463664d17
BLAKE2b-256 checksum
How to use checksums
e61b5677777c96c930c481af196faca6cf363edd11cb0e02079b3d0813be3543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page