Django

Code

Show
Ignore:
Timestamp:
07/04/07 01:02:00 (1 year ago)
Author:
mtredinnick
Message:

unicode: Merged from trunk up to [5600].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/unicode

    • Property svnmerge-integrated changed from /django/trunk:1-5579 to /django/trunk:1-5600
  • django/branches/unicode/docs/contributing.txt

    r5580 r5601  
    395395These guidelines regulate the format of our ReST documentation: 
    396396 
    397        * In section titles, capitalize only initial words and proper nouns. 
    398  
    399        * Wrap the documentation at 80 characters wide, unless a code example 
    400          is significantly less readable when split over two lines, or for another 
    401          good reason. 
     397    * In section titles, capitalize only initial words and proper nouns. 
     398 
     399    * Wrap the documentation at 80 characters wide, unless a code example 
     400      is significantly less readable when split over two lines, or for another 
     401      good reason. 
    402402 
    403403Commonly used terms 
     
    407407documentation: 
    408408 
    409        * **Django** -- when referring to the framework, capitalize Django. It is 
    410          lowercase only in Python code and in the djangoproject.com logo. 
    411  
    412        * **e-mail** -- it has a hyphen. 
    413  
    414        * **MySQL** 
    415  
    416        * **PostgreSQL** 
    417  
    418        * **Python** -- when referring to the language, capitalize Python. 
    419  
    420        * **realize**, **customize**, **initialize**, etc. -- use the American 
    421          "ize" suffix, not "ise." 
    422  
    423        * **SQLite** 
    424  
    425        * **subclass** -- it's a single word without a hyphen, both as a verb 
    426          ("subclass that model") and as a noun ("create a subclass"). 
    427  
    428        * **Web**, **World Wide Web**, **the Web** -- note Web is always 
    429          capitalized when referring to the World Wide Web. 
     409    * **Django** -- when referring to the framework, capitalize Django. It is 
     410      lowercase only in Python code and in the djangoproject.com logo. 
     411 
     412    * **e-mail** -- it has a hyphen. 
     413 
     414    * **MySQL** 
     415 
     416    * **PostgreSQL** 
     417 
     418    * **Python** -- when referring to the language, capitalize Python. 
     419 
     420    * **realize**, **customize**, **initialize**, etc. -- use the American 
     421      "ize" suffix, not "ise." 
     422 
     423    * **SQLite** 
     424 
     425    * **subclass** -- it's a single word without a hyphen, both as a verb 
     426      ("subclass that model") and as a noun ("create a subclass"). 
     427 
     428    * **Web**, **World Wide Web**, **the Web** -- note Web is always 
     429      capitalized when referring to the World Wide Web. 
    430430 
    431431    * **Web site** -- use two words, with Web capitalized. 
     
    434434--------------------------- 
    435435 
    436        * **model** -- it's not capitalized. 
    437  
    438        * **template** -- it's not capitalized. 
    439  
    440        * **URLconf** -- use three capitalized letters, with no space before 
    441          "conf." 
    442  
    443        * **view** -- it's not capitalized. 
     436    * **model** -- it's not capitalized. 
     437 
     438    * **template** -- it's not capitalized. 
     439 
     440    * **URLconf** -- use three capitalized letters, with no space before 
     441      "conf." 
     442 
     443    * **view** -- it's not capitalized. 
    444444 
    445445Committing code 
  • django/branches/unicode/docs/templates_python.txt

    r5580 r5601  
    312312    def some_view(request): 
    313313        # ... 
    314         return RequestContext(request, { 
     314        c = RequestContext(request, { 
    315315            'foo': 'bar', 
    316316        }, [ip_address_processor]) 
     317        return t.render(c) 
    317318 
    318319Note:: 
     
    678679    @template.stringfilter 
    679680    def lower(value): 
    680        return value.lower() 
     681        return value.lower() 
    681682 
    682683Writing custom template tags