Created
November 20, 2012 16:39
-
-
Save epicserve/4119113 to your computer and use it in GitHub Desktop.
Django Aliases
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
| # Django Aliases | |
| alias d=django-admin.py | |
| alias dt='django-admin.py test' | |
| alias dsa='django-admin.py startapp --template=https://github.com/epicserve/django-app-template/archive/master.zip' | |
| alias dsp='django-admin.py startproject --template=https://github.com/epicserve/django-base-site/archive/master.zip' | |
| alias dsma='django-admin.py schemamigration --auto' | |
| alias dsmi='django-admin.py schemamigration --initial' | |
| alias dm='django-admin.py migrate' | |
| # shortcut for starting django's runserver on a different port | |
| # usage: drs 3 | |
| drs () { | |
| if [[ -n "$*" ]]; then | |
| d runserver 127.0.0.1:"$*"000 | |
| else | |
| d runserver 127.0.0.1:8000 | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment