Changes between Initial Version and Version 1 of Ticket #14552


Ignore:
Timestamp:
Oct 24, 2010, 3:13:31 PM (14 years ago)
Author:
Gabriel Hurley
Comment:

That page already contain exactly what you're asking for under the heading Code Layout:

"If this doesn’t already exist, create it - don’t forget the __init__.py file to ensure the directory is treated as a Python package."

It is also noted in the sample directory structure. Doing more than that on this page would be redundant.

Thanks for the report, though!

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14552

    • Property Resolutionwontfix
    • Property Status newclosed
  • Ticket #14552 – Description

    initial v1  
    1 In http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ there is a concise explanation of how to define a custom filter. It might be good to emphasize the need for an empty __init__.py file in the templatetags directory - right now it just appears in a 'suggested' directory structure, and one might just ignore it if one does not understand it's mandatory - happened to me.
     1In http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ there is a concise explanation of how to define a custom filter. It might be good to emphasize the need for an empty `__init__.py` file in the templatetags directory - right now it just appears in a 'suggested' directory structure, and one might just ignore it if one does not understand it's mandatory - happened to me.
Back to Top