Re: Default mimetype

2009-04-13 Thread Roman Timushev

Thank you for your answers, I came to the same decision (that url
cannot define mimetype), but have not thought about decorators.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Default mimetype

2009-04-11 Thread Roman Timushev

Hello,

My application serves content with different mimetypes: 'application/
xhtml+xml', 'application/xml', 'application/json'. Specifying mimetype
for every view is not DRY. Is it possible to define default mimetype
for url groups?

Roman

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---