sayatul
10/26/2016 - 2:18 PM

Create shortcut for daily django commands

Create shortcut for daily django commands

# Copy the code into a file in your home directory and source it in your .bashrc / .bash_profile

alias dj="python manage.py"
alias djmm="python manage.py makemigrations"
alias djm="python manage.py migrate"
alias rundj="python manage.py runserver"
alias djcsu="python manage.py createsuperuser"
alias djdd="python manage.py dumpdata"
alias djld="python manage.py loaddata"
alias djsh="python manage.py shell"
alias djsm="python manage.py schemamigration"
alias djt="python manage.py test"