From ab1dc16fb480d59e9b7e5a7eca37281f7934ab34 Mon Sep 17 00:00:00 2001 From: tcaxle Date: Wed, 15 Apr 2020 17:13:36 +0100 Subject: [PATCH] env script --- activate | 1 + env.sh | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 120000 activate create mode 100755 env.sh diff --git a/activate b/activate new file mode 120000 index 0000000..d21ce3c --- /dev/null +++ b/activate @@ -0,0 +1 @@ +env/bin/activate \ No newline at end of file diff --git a/env.sh b/env.sh new file mode 100755 index 0000000..5cfb46c --- /dev/null +++ b/env.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +echo "== BEGIN ==" + +echo "== Upgrading pip ==" +pip install --user --upgrade pip + +echo "== Installing virtualenv ==" +pip install --user virtualenv + +echo "== Creating virtualenv 'env' ==" +virtualenv env + +echo "== Activating virtualenv 'env' ==" +source env/bin/activate + +echo "== Installing requirements ==" +pip install django +pip install psycopg2 # Needed for postgresql support +pip install django-polymorphic # Needed for polymorphic model support + # (allows querying of parent models to return children + +echo "== Creating symbolic links ==" +ln -s env/bin/activate activate + +echo "** Please source activate (-> env/bin/activate) **" +echo "== END =="