ignore venv
This commit is contained in:
parent
8aef2064e6
commit
eb3f685938
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -5,3 +5,4 @@ db.sqlite3
|
||||||
*.sw*
|
*.sw*
|
||||||
.env
|
.env
|
||||||
*.pyc
|
*.pyc
|
||||||
|
venv/
|
||||||
|
|
19
dev.sh
19
dev.sh
|
@ -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
|
|
Loading…
Reference in a new issue