ignore venv

This commit is contained in:
Thomas Steen Rasmussen 2016-11-08 08:30:41 +01:00
parent 8aef2064e6
commit eb3f685938
2 changed files with 1 additions and 19 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ db.sqlite3
*.sw*
.env
*.pyc
venv/

19
dev.sh
View File

@ -1,19 +0,0 @@
#!/bin/bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if ! [ -f "$DIR/bornhack/settings/.env" ]
then
echo "Creating .env file from template..."
echo "MEDIA_ROOT=\"$DIR/.dev/media\"" > "$DIR/bornhack/settings/.env"
cat "$DIR/.env_template" >> "$DIR/bornhack/settings/.env"
fi
if ! [ -d "$DIR/.dev" ]
then
echo "Creating .dev dir for development stuff"
mkdir -p "$DIR/.dev/media"
fi
python "$DIR/manage.py" $@ --settings=bornhack.settings.development