Changes between Version 5 and Version 6 of DosAndDontsForApplicationWriters
- Timestamp:
- Nov 19, 2005, 9:06:58 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DosAndDontsForApplicationWriters
v5 v6 28 28 29 29 * To avoid name clashes with templates from other applications all your templates should 30 go into {{{mnemosyne/templates/mnemosyne/}}} 30 go into {{{mnemosyne/templates/mnemosyne/}}}. The {{{mnemosyne/templates}} directory 31 will need to be added to 'TEMPLATE_DIRS'. 31 32 * Your templates should all extend a single {{{base}}}-template specific to 32 33 your application, in my example it would be {{{mnemosyne/templates/mnemosyne/base.html}}} … … 83 84 and {{{/media/mnemosyne}}}. 84 85 86 == Package and module structure == 87 88 * Separate generic apps that you are intending to distribute into a different project 89 from other projects which might happen to use that app. To avoid clashes, use a name for 90 the project which is unique to you, the author, such as one based on a domain name that 91 you own. Examples: 92 {{{ 93 project_for_acme_com/ 94 apps/ 95 myapp/ 96 ibofobi/ 97 apps/ 98 mnemosyne/ 99 }}} 100 rather than: 101 {{{ 102 project_for_acme_com/ 103 apps/ 104 myapp/ 105 mnemosyne/ 106 }}} 107 This will enable your urls.py module to be fully portable. 108 85 109 == URLs == 86 110