Skip to content

Instantly share code, notes, and snippets.

@augustogoulart
Created June 27, 2017 16:23
Show Gist options
  • Save augustogoulart/8a435c6419a4d497ba8665e30390a474 to your computer and use it in GitHub Desktop.
Save augustogoulart/8a435c6419a4d497ba8665e30390a474 to your computer and use it in GitHub Desktop.
Example of some django aliases
alias manage='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py'
alias test='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py test'
alias runserver='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py runserver'
alias makemigrations='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py makemigrations'
alias migrate='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py migrate'
alias shell='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py shell'
alias shellp='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py shell_plus'
alias createsuperuser='python $(cat $(echo $VIRTUAL_ENV/.project))/manage.py createsuperuser'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment