Django

Code

Show
Ignore:
Timestamp:
07/06/08 10:23:24 (6 months ago)
Author:
brosner
Message:

newforms-admin: Merged from trunk up to [7852].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin

    • Property svnmerge-integrated changed from /django/trunk:1-4345,4350-4357,4359-4365,4371-4372,4374-4377,4380-4386,4388,4390-4391,4400-4402,4404-4408,4410,4412-4419,4426-4427,4430-4432,4434,4441,4443-4444,4446-4447,4450,4452-4453,4455-4458,4476,4503,4546,4564-4569,4580-4586,4617,4630,4641-6390,6392-7829 to /django/trunk:1-4345,4350-4357,4359-4365,4371-4372,4374-4377,4380-4386,4388,4390-4391,4400-4402,4404-4408,4410,4412-4419,4426-4427,4430-4432,4434,4441,4443-4444,4446-4447,4450,4452-4453,4455-4458,4476,4503,4546,4564-4569,4580-4586,4617,4630,4641-6390,6392-7852
  • django/branches/newforms-admin/docs/django-admin.txt

    r7707 r7853  
    8585 
    8686.. _Tutorial 2: ../tutorial02/ 
     87 
     88cleanup  
     89------- 
     90 
     91**New in Django development version** 
     92 
     93Can be run as a cronjob or directly to clean out old data from the database 
     94(only expired sessions at the moment). 
     95 
     96compilemessages 
     97--------------- 
     98 
     99**New in Django development version** 
     100 
     101Compiles .po files created with ``makemessages`` to .mo files for use with 
     102the builtin gettext support. See the `i18n documentation`_ for details. 
     103 
     104--locale 
     105~~~~~~~~ 
     106 
     107Use the ``--locale`` or ``-l`` option to specify the locale to process. 
     108If not provided all locales are processed. 
     109 
     110Example usage:: 
     111 
     112    django-admin.py compilemessages --locale=br_PT 
    87113 
    88114createcachetable <tablename> 
     
    362388 
    363389    django-admin.py loaddata --verbosity=2 
     390 
     391makemessages 
     392------------ 
     393 
     394**New in Django development version** 
     395 
     396Runs over the entire source tree of the current directory and pulls out all 
     397strings marked for translation. It creates (or updates) a message file in the 
     398conf/locale (in the django tree) or locale (for project and application) 
     399directory. After making changes to the messages files you need to compile them 
     400with ``compilemessages`` for use with the builtin gettext support. See the 
     401`i18n documentation`_ for details. 
     402 
     403.. _i18n documentation: ../i18n/#how-to-create-language-files 
     404 
     405--all 
     406~~~~~ 
     407 
     408Use the ``--all`` or ``-a`` option to update the message files for all 
     409available languages. 
     410 
     411Example usage:: 
     412 
     413    django-admin.py makemessages --all 
     414 
     415--locale 
     416~~~~~~~~ 
     417 
     418Use the ``--locale`` or ``-l`` option to specify the locale to process. 
     419 
     420Example usage:: 
     421 
     422    django-admin.py makemessages --locale=br_PT 
     423 
     424--domain 
     425~~~~~~~~ 
     426 
     427Use the ``--domain`` or ``-d`` option to change the domain of the messages files. 
     428Currently supported: 
     429 
     430        * ``django`` for all ``*.py`` and ``*.html`` files (default)  
     431        * ``djangojs`` for ``*.js`` files 
     432 
     433--verbosity 
     434~~~~~~~~~~~ 
     435 
     436Use ``--verbosity`` or ``-v`` to specify the amount of notification and debug 
     437information that ``django-admin.py`` should print to the console. 
     438 
     439        * ``0`` means no output. 
     440        * ``1`` means normal output (default). 
     441        * ``2`` means verbose output. 
     442 
     443Example usage:: 
     444 
     445    django-admin.py makemessages --verbosity=2 
    364446 
    365447reset <appname appname ...>