django-designer-0.2.1
توضیحات
Django template renderer for designers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-designer-0.2.1 |
| نام | django-designer |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Richard Lander |
| ایمیل نویسنده | lander2k2@gmail.com |
| آدرس صفحه اصلی | https://github.com/lander2k2/django-designer |
| آدرس اینترنتی | https://pypi.org/project/django-designer/ |
| مجوز | MIT |
===============
django-designer
===============
Allow designers to work on your templates without having to run
the Django development server, database etc.
Designer's workflow:
#. Pulls repo
#. Edits template, makes it look pretty
#. Runs manage.py command to render template and produce html file
#. Points browser to file
#. Views pretty rendered template in browser
#. Repeats steps 2 and 3, refreshes browser
#. 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.
نحوه نصب
نصب پکیج whl django-designer-0.2.1:
pip install django-designer-0.2.1.whl
نصب پکیج tar.gz django-designer-0.2.1:
pip install django-designer-0.2.1.tar.gz