| | 384 | |
|---|
| | 385 | Documentation style |
|---|
| | 386 | =================== |
|---|
| | 387 | |
|---|
| | 388 | We place a high importance on consistency and readability of documentation. |
|---|
| | 389 | (After all, Django was created in a journalism environment!) |
|---|
| | 390 | |
|---|
| | 391 | Guidelines for ReST files |
|---|
| | 392 | ------------------------- |
|---|
| | 393 | |
|---|
| | 394 | These guidelines regulate the format of our ReST documentation: |
|---|
| | 395 | |
|---|
| | 396 | * In section titles, capitalize only initial words and proper nouns. |
|---|
| | 397 | |
|---|
| | 398 | * Wrap the documentation at 80 characters wide, unless a code example |
|---|
| | 399 | is significantly less readable when split over two lines, or for another |
|---|
| | 400 | good reason. |
|---|
| | 401 | |
|---|
| | 402 | Commonly used terms |
|---|
| | 403 | ------------------- |
|---|
| | 404 | |
|---|
| | 405 | Here are some style guidelines on commonly used terms throughout the |
|---|
| | 406 | documentation: |
|---|
| | 407 | |
|---|
| | 408 | * **Django** -- when referring to the framework, capitalize Django. It is |
|---|
| | 409 | lowercase only in Python code and in the djangoproject.com logo. |
|---|
| | 410 | |
|---|
| | 411 | * **e-mail** -- it has a hyphen. |
|---|
| | 412 | |
|---|
| | 413 | * **Python** -- when referring to the language, capitalize Python. |
|---|
| | 414 | |
|---|
| | 415 | * **Realize**, **customize**, **initialize**, etc. -- use the American |
|---|
| | 416 | "ize" suffix, not "ise." |
|---|
| | 417 | |
|---|
| | 418 | * **Web**, **World Wide Web**, **the Web** -- note Web is always |
|---|
| | 419 | capitalized when referring to the World Wide Web. |
|---|
| | 420 | |
|---|
| | 421 | * **Web site** -- two words, with Web capitalized. |
|---|
| | 422 | |
|---|
| | 423 | Django-specific terminology |
|---|
| | 424 | --------------------------- |
|---|
| | 425 | |
|---|
| | 426 | * **model** -- not capitalized. |
|---|
| | 427 | |
|---|
| | 428 | * **template** -- not capitalized. |
|---|
| | 429 | |
|---|
| | 430 | * **URLconf** -- three capitalized letters, no space before "conf." |
|---|
| | 431 | |
|---|
| | 432 | * **view** -- not capitalized. |
|---|