Django

Code

Ticket #5955: doc_fixes.diff

File doc_fixes.diff, 4.3 kB (added by SmileyChris, 1 year ago)
  • tutorial01.txt

    old new  
    4747   denied" when you try to run ``django-admin.py startproject``. This 
    4848   is because, on Unix-based systems like OS X, a file must be marked 
    4949   as "executable" before it can be run as a program. To do this, open 
    50    Terminal.app and navigate (using the `cd` command) to the directory 
     50   Terminal.app and navigate (using the ``cd`` command) to the directory 
    5151   where ``django-admin.py`` is installed, then run the command 
    5252   ``chmod +x django-admin.py``. 
    5353 
  • url_dispatch.txt

    old new  
    237237------- 
    238238 
    239239A function that takes a full Python import path to another URLconf that should 
    240 be "included" in this place. See _`Including other URLconfs` below. 
     240be "included" in this place. See `Including other URLconfs`_ below. 
    241241 
    242242Notes on capturing text in URLs 
    243243=============================== 
  • release_notes_0.96.txt

    old new  
    4444    DATABASE_ENGINE = "mysql_old" 
    4545 
    4646However, we strongly encourage MySQL users to upgrade to a more recent 
    47 version of `MySQLdb` as soon as possible, The "mysql_old" backend is 
     47version of ``MySQLdb`` as soon as possible, The "mysql_old" backend is 
    4848provided only to ease this transition, and is considered deprecated; 
    4949aside from any necessary security fixes, it will not be actively 
    5050maintained, and it will be removed in a future release of Django. 
  • model-api.txt

    old new  
    5050Some technical notes: 
    5151 
    5252    * The name of the table, ``myapp_person``, is automatically derived from 
    53       some model metadata but can be overridden. See _`Table names` below. 
     53      some model metadata but can be overridden. See `Table names`_ below. 
    5454    * An ``id`` field is added automatically, but this behavior can be 
    5555      overriden. See `Automatic primary key fields`_ below. 
    5656    * The ``CREATE TABLE`` SQL in this example is formatted using PostgreSQL 
     
    16641664 
    16651665Adding extra ``Manager`` methods is the preferred way to add "table-level" 
    16661666functionality to your models. (For "row-level" functionality -- i.e., functions 
    1667 that act on a single instance of a model object -- use _`Model methods`, not 
     1667that act on a single instance of a model object -- use `Model methods`_, not 
    16681668custom ``Manager`` methods.) 
    16691669 
    16701670A custom ``Manager`` method can return anything you want. It doesn't have to 
  • authentication.txt

    old new  
    170170 
    171171      If no password is provided, ``set_unusable_password()`` will be called. 
    172172 
    173       See _`Creating users` for example usage. 
     173      See `Creating users`_ for example usage. 
    174174 
    175175    * ``make_random_password(length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789')`` 
    176176      Returns a random password with the given length and given string of 
  • django-admin.txt

    old new  
    651651that it doesn't matter whether the options come before or after the fixture 
    652652arguments.) 
    653653 
    654 To run on 1.2.3.4:7000 with a `test` fixture:: 
     654To run on 1.2.3.4:7000 with a ``test`` fixture:: 
    655655 
    656656    django-admin.py testserver --addrport 1.2.3.4:7000 test 
    657657 
  • templates_python.txt

    old new  
    11361136template that is filled with details from the current object. (In the admin's 
    11371137case, this is the ``submit_row`` tag.) 
    11381138 
    1139 These sorts of tags are called `inclusion tags`
     1139These sorts of tags are called inclusion tags
    11401140 
    11411141Writing inclusion tags is probably best demonstrated by example. Let's write a 
    11421142tag that outputs a list of choices for a given ``Poll`` object, such as was