equal
deleted
inserted
replaced
|
1 Templates are placed in a "namespace" subdirectory in the templates directory, |
|
2 since the templates directory will be added to the Django templates search |
|
3 path. This allows other packages to extend existing templates without "hiding" |
|
4 the original template. For example, a template in another Melange application |
|
5 can extend a template in the SoC framework like this: |
|
6 |
|
7 {% extends 'soc/some_existing_template.html %} |
|
8 |
|
9 without "hiding" the some_existing_template.html for other uses, even if the |
|
10 derived template is also named some_existing_template.html. |
|
11 |
|
12 So, please do not put any templates in this soc/templates directory, but only |
|
13 place them in the soc/templates/soc "namespace" subdirectory. |
|
14 |
|
15 Different Melange applications should also follow this pattern, to promote |
|
16 sharing of templates between applications as well. For exmample, the GSoC |
|
17 Melange application should place its templates in gsoc/templates/gsoc. |
|
18 |