Skip to content

Instantly share code, notes, and snippets.

@unbracketed
Created November 7, 2009 01:45
Show Gist options
  • Save unbracketed/228457 to your computer and use it in GitHub Desktop.
Save unbracketed/228457 to your computer and use it in GitHub Desktop.

Revisions

  1. unbracketed revised this gist Nov 8, 2009. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@ alias djdb='dj dbshell'
    alias djs='dj shell'
    alias djsp='dj shell_plus'
    alias djt='dj test'
    alias djm='dj migrate'
    alias djsm='dj startmigration'

    #A common convention for those who aren't keen on the local_settings approach to Django
  2. unbracketed revised this gist Nov 8, 2009. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@ alias djdb='dj dbshell'
    alias djs='dj shell'
    alias djsp='dj shell_plus'
    alias djt='dj test'
    alias djsm='dj startmigration'

    #A common convention for those who aren't keen on the local_settings approach to Django
    #settings overrides often use variations on the play of naming local overrides files
  3. unbracketed revised this gist Nov 7, 2009. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,10 @@ alias djt='dj test'
    #A common convention for those who aren't keen on the local_settings approach to Django
    #settings overrides often use variations on the play of naming local overrides files
    #the same as the machine's hostname. Point Django to the correct one here:

    export SERVER_IDENTIFIER=hostname

    #For more ideas/inspiration on managing settings across environments see:
    #http://github.com/tarequeh/django-config


  4. unbracketed revised this gist Nov 7, 2009. 1 changed file with 11 additions and 2 deletions.
    13 changes: 11 additions & 2 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -4,12 +4,21 @@
    # 1. workon <project name>
    # 2. djr

    cd /path/to/site/root

    #cd /path/to/site/root
    #Django command shortcuts
    alias dj='python manage.py'
    alias djr='dj runserver'
    alias djrp='dj runserver_plus'
    alias djdb='dj dbshell'
    alias djs='dj shell'
    alias djsp='dj shell_plus'
    alias djt='dj test'
    alias djt='dj test'

    #A common convention for those who aren't keen on the local_settings approach to Django
    #settings overrides often use variations on the play of naming local overrides files
    #the same as the machine's hostname. Point Django to the correct one here:
    export SERVER_IDENTIFIER=hostname



  5. unbracketed revised this gist Nov 7, 2009. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,5 @@ alias djr='dj runserver'
    alias djrp='dj runserver_plus'
    alias djdb='dj dbshell'
    alias djs='dj shell'
    alias djsp='dj shell_plus'
    alias djsp='dj shell_plus'
    alias djt='dj test'
  6. unbracketed revised this gist Nov 7, 2009. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,11 @@
    #I usually drop something like this into my virtualenv's postactivate for some
    #quick and handy shortcuts to common Django commands.
    #This way dropping in to do some work on any arbitrary project is as easy as:
    # 1. workon <project name>
    # 2. djr


    #cd /path/to/site/root
    alias dj='python manage.py'
    alias djr='dj runserver'
    alias djrp='dj runserver_plus'
  7. unbracketed created this gist Nov 7, 2009.
    8 changes: 8 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #I usually drop something like this into my virtualenv's postactivate for some
    #quick and handy shortcuts to common Django commands.
    alias dj='python manage.py'
    alias djr='dj runserver'
    alias djrp='dj runserver_plus'
    alias djdb='dj dbshell'
    alias djs='dj shell'
    alias djsp='dj shell_plus'