Wednesday, February 29, 2012

Re: using django templates to generate and replace a file

Hey,

I just thought I'd give you a quick reply. First, you can save the rendered output of a template using this:


Then, take that String and write over that 'users.cfg' file. For example,


Hopefully that helps a little bit. I'm not sure if I understand the problem right but I figured I'd give it a shot.

Good luck!
- Kurtis

On Wed, Feb 29, 2012 at 4:27 PM, Paul Bunker <paulmarkbunker@gmail.com> wrote:
Hi Django Users,

I'd like to use the django template system to generate a file
'users.cfg' that gets read some dispatching software. Is it possible
to get django  to generate this file and replace the existing one?

Thanks
-Paul

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment