select
TOSRI."InDate" AS "Kelish sanasi",
TOSRN."CostTotal" AS "Tannarx",
TOITB."ItmsGrpNam" AS "Kategoriya",
TOITM."ItemName" AS "Nom",
TOSRI."IntrSerial" AS "IMEI",
TOITM."U_Color" AS "Rang",
TOITM."U_Condition" AS "Holat"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e # exit script if any error occurs | |
| # Bash script for settign up Django project on Ubuntu 14 with nginx, python 3, | |
| # virtualenv, git installed | |
| # Will create directory structure, clone source code, change Django secret key, | |
| # set up Nginx conf, set up gunicorn upstart job. | |
| # Upstart job will be named "site-<project_name>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django import template | |
| from collections import namedtuple | |
| register = template.Library() | |
| @register.tag | |
| def set_query_string_param(parser, token): | |
| """ | |
| Django template tag to set/unset url query string parameter |