Re,

Anybody for helping me in my quest ?

Nicolas

On 16 oct, 21:58, Nicolas Steinmetz <nsteinm...@gmail.com> wrote:
> Hello,
>
> I'm building a django app to manage the reverse proxies of my firm. I'm
> at the step where I want to generate configuration files for apache and
> then send it from the server that host the django app to the reverse
> proxies.
>
> I built a view base on a generic view (object_detail) with some extra
> code. With a mimetype set to plain/text it generates the right
> configuration file as a view.
>
> I read the doc regarding outputin csv/pdf file but they are proposed for
> download and not generated on the server itself.
>
> I tried to play with render_to_string() (based on [1]) within a view but
> with no success so far. File is created but remains empty. You can see
> the code here [2] and the working view is here [3]
>
> If someone already did something similar to what I need, I'll be glad to
> see some running code :)
>
> Cheers,
> Nicolas
>
> [1]http://www.djangosnippets.org/snippets/689/
> [2]http://friendpaste.com/9emHQNyTWuLt10S8jlqhY
> [3]http://friendpaste.com/4Z2bikQnCVXQ1EKh1Puq9B
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to