aboutsummaryrefslogtreecommitdiff
path: root/config/djadmin.sh
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-11-02 15:01:05 -0600
committerluxagraf <sng@luxagraf.net>2018-11-02 15:01:05 -0600
commit68abc78a9a543697d8f176775a052c1d70e371a4 (patch)
tree8d440951fa1786d2ac62a3836079a979bb812fae /config/djadmin.sh
added some basic user models and tests
Diffstat (limited to 'config/djadmin.sh')
-rwxr-xr-xconfig/djadmin.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/djadmin.sh b/config/djadmin.sh
new file mode 100755
index 0000000..24081d4
--- /dev/null
+++ b/config/djadmin.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+DIR="$( cd "$( dirname $( dirname "${BASH_SOURCE[0]}" ) )" && pwd )"
+PYTHONPATH=$PYTHONPATH:$DIR
+PYTHONPATH=$PYTHONPATH:"${DIR}/apps"
+PYTHONPATH=$PYTHONPATH:"${DIR}/apps/lib"
+PYTHONPATH=$PYTHONPATH:"${DIR}/venv/lib/python3.6/"
+export PYTHONPATH
+export DJANGO_SETTINGS_MODULE=config.settings
+ADMIN="${DIR}/venv/bin/django-admin.py"
+$ADMIN $@