Hello, I think you could use this :
http://docs.djangoproject.com/en/dev/topics/http/urls/#passing-extra-options-to-view-functions
You can give some parameters to your view function, defined into the url
pattern.
So, when it's /mycooldfeed you will write {'template':
'normal_template.tpl'} and when it's /embed/mycooldfeed/ you will write
{'template': 'embed_template.tpl'}
Or something like that...
But may be someone have a better idea.
2009/4/9 Nick Boucart <[email protected]>
>
> Ideally, I would like to have a urls like:
> /mycoolfeed and /embed/mycoolfeed that both fetch exactly the same
> data from the database, but render a different template based upon the
> url.
>
> How would you do this?
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---