Sign up to Heroku.
Then install the Heroku Toolbelt. It is a command line tool to manage your Heroku apps
After installing the Heroku Toolbelt, open a terminal and login to your account:
| # Add this code in any Django app's admin.py | |
| # Works for all Task Statuses; you can filter them in line 12. | |
| import ast | |
| import importlib | |
| import json | |
| from django.contrib import admin | |
| from django.contrib import messages | |
| from django.utils.safestring import mark_safe |
Sign up to Heroku.
Then install the Heroku Toolbelt. It is a command line tool to manage your Heroku apps
After installing the Heroku Toolbelt, open a terminal and login to your account:
| {% load crispy_forms_field %} | |
| <div id="div_{{ field.auto_id }}" class="control-group{% if form_show_errors and field.errors %} error{% endif %} {% if field.field.widget.attrs.class %} {{ field.field.widget.attrs.class }}{% endif %}"> | |
| {% if field.label %} | |
| <label for="{{ field.id_for_label }}" class="control-label {% if field.field.required %}requiredField{% endif %}"> | |
| {{ field.label|safe }}{% if field.field.required %}<span class="asteriskField">*</span>{% endif %} | |
| </label> | |
| {% endif %} |