Changes between Version 2 and Version 3 of CookBookScriptsAliases


Ignore:
Timestamp:
May 21, 2006, 7:25:12 AM (19 years ago)
Author:
Antti Kaihola
Comment:

magic-removal is history now, so MR->DJ

Legend:

Unmodified
Added
Removed
Modified
  • CookBookScriptsAliases

    v2 v3  
    1717$ less $DJ/docs/overview.txt
    1818$ djgrep Permissions
    19 /usr/lib/python2.4/site-packages/django/contrib/auth/models.py:77:            (_('Permissions'), {'fields': ('is_staff', 'is_active', 'is_superuser', 'user_permissions')}),
     19/usr/lib/python2.4/site-packages/django/contrib/auth/models.py:77: (_('Permissions'), {'fields': ('is_staff', 'is_active', 'is_superuser', 'user_permissions')}),
    2020}}}
    2121
    22 Here's another example for those who don't keep their Django tree in {{{PYTHONPATH}}} (e.g. because of using many different Django versions). In this case the magic-removal branch is located in the user's home directory.
     22Here's another example for those who don't keep their Django tree in {{{PYTHONPATH}}} (e.g. because of using many different Django versions). In this case the trunk branch is located in the user's home directory.
    2323{{{
    24 MRP=/home/akaihola/magic-removal  # MRP stands for Magic-Removal Pythonpath
    25 MR=$MRP/django
    26 MRBIN=$MR/bin
    27 alias mradmin='PYTHONPATH=$MRP $MRBIN/django-admin.py'
    28 mrgrep() {
    29   grep -r --include="*.py" --include="*.html" $* $MR
     24DJP=/home/akaihola/django-trunk  # DJP stands for DJango Pythonpath
     25DJ=$DJP/django
     26DJBIN=$DJ/bin
     27alias djadmin='PYTHONPATH=$DJP $DJBIN/django-admin.py'
     28djgrep() {
     29  grep -r --include="*.py" --include="*.html" $* $DJ
    3030}
    3131
    3232}}}
    3333
    34 And some useful idioms using these shortcuts:
     34And some useful mantras using these shortcuts:
    3535{{{
    36 $ svn up $MRP
    37 $ mradmin startproject myproject
    38 $ $MRBIN/make-messages.py
    39 $ PYTHONPATH=$MRP ipython
     36$ svn up $DJP
     37$ djadmin startproject myproject
     38$ $DJBIN/make-messages.py
     39$ PYTHONPATH=$DJP ipython
    4040In [1]:import django
    4141In [2]:django.__file__
    42 Out[2]:'/home/akaihola/magic-removal/django/__init__.pyc'
     42Out[2]:'/home/akaihola/django-trunk/django/__init__.pyc'
    4343}}}
Back to Top