mirror of
https://github.com/django/django.git
synced 2025-08-15 06:19:23 +00:00
Fixed #6732 -- Added missing word "must" in templates_python.txt
docs, thanks Atul Varma.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7fbebae8c8
commit
444b7b2849
@ -629,9 +629,10 @@ the given Python module name, not the name of the app.
|
|||||||
Once you've created that Python module, you'll just have to write a bit of
|
Once you've created that Python module, you'll just have to write a bit of
|
||||||
Python code, depending on whether you're writing filters or tags.
|
Python code, depending on whether you're writing filters or tags.
|
||||||
|
|
||||||
To be a valid tag library, the module contain a module-level variable named
|
To be a valid tag library, the module must contain a module-level variable
|
||||||
``register`` that is a ``template.Library`` instance, in which all the tags and
|
named ``register`` that is a ``template.Library`` instance, in which all the
|
||||||
filters are registered. So, near the top of your module, put the following::
|
tags and filters are registered. So, near the top of your module, put the
|
||||||
|
following::
|
||||||
|
|
||||||
from django import template
|
from django import template
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user