Last active
December 14, 2015 21:29
-
-
Save shulcsm/5151483 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ROOT_DIR="$1" | |
mkdir "$ROOT_DIR" | |
cd "$ROOT_DIR" | |
#setup venv | |
virtualenv env --distribute | |
source env/bin/activate | |
#install django so we can start up an app | |
pip install django | |
#start app from template | |
django-admin.py startproject --template=https://bitbucket.org/ffitlv/django-project-template/get/master.zip --extension=py,rst,html "$ROOT_DIR" . | |
#install template requirements | |
pip install -r requirements/local.txt | |
#ini new git repo | |
git init | |
#ignore venv | |
echo "/env" >> .git/info/exclude | |
git add . | |
git commit -m "Intitial commit" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
┌ peter@evil(12) : /tmp : 15:35:11 : 0.08
│$ ./viens
1
2
.2
okay
.1
┌ peter@evil(12) : /tmp : 15:35:13 : 0.07
│$ echo $lol
┌ peter@evil(12) : /tmp : 15:35:19 : 0.07
│$ source viens
1
2
.2
okay
.1
┌ peter@evil(12) : /tmp : 15:35:26 : 0.06
│$ echo $lol
okay
┌ peter@evil(12) : /tmp : 15:35:27 : 0.06
│$ cat viens
echo 1
source divi
echo "$lol"
echo .1
┌ peter@evil(12) : /tmp : 15:36:52 : 0.02
│$ cat divi
echo 2
lol=okay
echo .2