Skip to content

Instantly share code, notes, and snippets.

View wrwrwr's full-sized avatar

Wojtek Ruszczewski wrwrwr

View GitHub Profile
@wrwrwr
wrwrwr / lambda.sh
Created February 15, 2017 23:32
Package a Python module with NumPy and SciPy for AWS Lambda.
#!/usr/bin/env bash
# Path to the project directory (that should include requirements.txt),
# Files and directories within that need to be deployed.
project=../backend
contents=(module lamdba_handler.py)
# Unnecessary parts. Note that there are some inter-dependencies in SciPy,
# for example to use scipy.stats you also need scipy.linalg, scipy.integrate,
# scipy.misc, scipy.sparse, and scipy.special.
diff --git a/settings.py b/settings.py
index b641b47..fc75500 100644
--- a/settings.py
+++ b/settings.py
@@ -168,7 +168,12 @@ USE_TZ = True
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
-LANGUAGE_CODE = "en"
+gettext = lambda s: s
diff --git a/settings.py b/settings.py
index ff815c7..c81adfd 100644
--- a/settings.py
+++ b/settings.py
@@ -105,7 +105,12 @@ USE_TZ = True
# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
-LANGUAGE_CODE = "en"
+gettext = lambda s: s