Skip to content

Instantly share code, notes, and snippets.

@ychevarrias
Last active February 5, 2019 05:29
Show Gist options
  • Save ychevarrias/e6ab6680477bc980e8be52333c086ec1 to your computer and use it in GitHub Desktop.
Save ychevarrias/e6ab6680477bc980e8be52333c086ec1 to your computer and use it in GitHub Desktop.
Django on Termux
apt install python
apt install ndk-sysroot clang # For Pillow and complex packages
apt install libcrypt-dev # for psycopg2-binary
apt install python-pip
-- pip install virtualenv
-- pip install django pillow
-- pip install psycopg2-binary # optional
# para instalar postgresql local
apt install postgresql
-- mkdir -p $PREFIX/var/lib/postgresql
-- initdb $PREFIX/var/lib/postgresql
-- pg_ctl -D /data/data/com.termux/files/usr/var/lib/postgresql -l logfile start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment