Opened 16 years ago
Closed 16 years ago
#10376 closed (wontfix)
I need to point feeds to get their templates from my template directory
Reported by: | RuslanPopov | Owned by: | nobody |
---|---|---|---|
Component: | Generic views | Version: | dev |
Severity: | Keywords: | feed | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
For example, I have the following directory structure:
project_name app1 app2 templates app1 feeds app2 feeds
At this time Django requires that feeds directory is in project_name/templates.
I made a dirty hack to make my templates layout work.
May be it would helpful to realize such functionality by Django's developers.
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | feeds.diff added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
No patch that makes the assumption the app name is a specific part of the URL is going to be accepted, second why can't you just put your feed template at project_name/templates/feeds/ ?
comment:2 by , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I don't think this is worth doing. You can already put templates in app template directories (where the app-based template loader will find them). That's pretty common. If you wanted to do things in the way you've got above, you can hard-code the app name into the template load path.
Your patch seems to add a slightly similar, but not identical, template loading scheme to the app-based template loader. If you really wanted to do that, it would be better to write your own template loader that worked in exactly that way.
Patch for syndication's feeds.py