Open file /etc/default/locale to add or change LC_ALL to the following
LC_ALL="en_US.UTF-8"
Then logout and login again.
Install necessary packages
def search(request): | |
search_string=request.POST['search_string'] | |
if re.match(r'^\s*$',search_string): return redirect('home') | |
results=[] | |
search_fields=('id','name') | |
equipment_models = \ | |
[model for model in django.db.models.get_models() if\ | |
model._meta.db_table.startswith("equipment_")] | |
for model in equipment_models: | |
query=halipsearch.get_query(search_string,search_fields) |