Bitnami Redmine Stack の phpMyAdmin にリモート端末からアクセスする方法です。
- Debian jessie
- bitnami-redmine-3.1.0-0-linux-x64
| # From http://vanderwijk.info/blog/adding-css-classes-formfields-in-django-templates/#comment-1193609278 | |
| from django import template | |
| register = template.Library() | |
| @register.filter(name='add_attributes') | |
| def add_attributes(field, css): | |
| attrs = {} | |
| definition = css.split(',') |
| import yaml | |
| import yaml.constructor | |
| try: | |
| # included in standard lib from Python 2.7 | |
| from collections import OrderedDict | |
| except ImportError: | |
| # try importing the backported drop-in replacement | |
| # it's available on PyPI | |
| from ordereddict import OrderedDict |