This document will cover a technical documentation for the Trapper project.
Trapper was developed with a flexible architecture in mind. For that reason it was separated into few django applications which establish some layers of abstraction over common usages. As of yet, there exist few core trapper applications, which often communicate between each other.
Trapper is composed of several Django applications. In next section we will cover each application in the project, describing the Models (database ORM definition) of each application, its Views (Controller in the MVC) as well as the frontend, i.e. Templates. In many cases we will also cover the Forms or the Decorators of the application.
Core applications of Trapper are following:
Use double quotes:
Use single quotes:
FRUIT_CHOICES = {
'A': "Apples",
'B': "Banana",
}
def set_color(color='red'):
"""Sets the color."""
<table>
{% for row in table_rows %}
<tr>
{% for cell in row.cells %}
<td>{{ cell }}</td>
{% endfor %}
</tr>
{% endfor %}
</table>