Django

Code

Show
Ignore:
Timestamp:
07/06/08 01:39:44 (5 months ago)
Author:
mtredinnick
Message:

Fixed #5522 -- Moved make-messages, compile-messages and daily-cleanup into django-admin.py.

They are now called "makemessages", "compilemessages" and "cleanup". This is
backwards incompatible for make-messages.py and compile-messages.py, although
the old executables still exist for now and print an error pointing the caller
to the right command to call.

This reduces the number of binaries and man pages Django needs to install.

Patch from Janis Leidel.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/man/django-admin.1

    r7294 r7844  
    1 .TH "django-admin.py" "1" "June 2007" "Django Project" "" 
     1.TH "django-admin.py" "1" "March 2008" "Django Project" "" 
    22.SH "NAME" 
    33django\-admin.py \- Utility script for the Django web framework 
     
    2222Prints the admin\-index template snippet for the given app name(s). 
    2323.TP 
     24.BI cleanup 
     25Cleans out old data from the database (only expired sessions at the moment). 
     26.TP 
     27.BI "compilemessages [" "\-\-locale=LOCALE" "]" 
     28Compiles .po files to .mo files for use with builtin gettext support. 
     29.TP 
    2430.BI "createcachetable [" "tablename" "]" 
    2531Creates the table needed to use the SQL cache backend 
     
    4349.B sqlall 
    4450for the given app(s) in the current database. 
     51.TP 
     52.BI "makemessages [" "\-\-locale=LOCALE" "] [" "\-\-domain=DOMAIN" "] [" "\-\-all" "]" 
     53Runs over the entire source tree of the current directory and pulls out all 
     54strings marked for translation. It creates (or updates) a message file in the 
     55conf/locale (in the django tree) or locale (for project and application) directory. 
    4556.TP 
    4657.BI "reset [" "appname ..." "]" 
     
    137148.I \-\-adminmedia=ADMIN_MEDIA_PATH 
    138149Specifies the directory from which to serve admin media when using the development server. 
    139  
     150.TP 
     151.I \-l, \-\-locale=LOCALE 
     152The locale to process when using makemessages or compilemessages. 
     153.TP 
     154.I \-d, \-\-domain=DOMAIN 
     155The domain of the message files (default: "django") when using makemessages. 
     156.TP 
     157.I \-a, \-\-all 
     158Process all available locales when using makemessages. 
    140159.SH "ENVIRONMENT" 
    141160.TP