Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Asad ur Rehman
Fabio Caritas Barrionuevo da Luz Thanks dear i will follow your link to improve my questioning ! Thanks again. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to d

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Fabio C. Barrionuevo da Luz
Dear Asad, Ludovic Coues has already answered your question. simply create a new file and save the content in it: from django.template.loader import render_to_string xml_content = render_to_string('my_xml_template_with_django_template_variables.xml', {'foo': 'bar'}) file_path = '/etc/freeswit

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Asad ur Rehman
*M Hashmi* its Ok Next i will try to Post question that you can easily understand. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Asad ur Rehman
ludovic coues Output of Gateway.objects.all()[:3].values_list('name') is (u 'TestGateway',) Assume this file i just want to change the -- You received this

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread M Hashmi
I apologize for my message but it reminded me the last question from asad and frustration due to absence of code. Hope Asad will make it a practice and what Ludovic suggested makes sense. Hope it works. On Wednesday, August 10, 2016 at 3:46:32 AM UTC-7, Asad ur Rehman wrote: > > I want to creat

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread ludovic coues
I'm pretty sure talking about telepathy was rude, outside the django's code of conduct and some excuses would be nice. The question make a lot more sense with an exemple :) I assume Gateway is a django model (I missed that first time, sorry) and you want to fill an xml file. Do you mind to share

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread M Hashmi
Don't take it personal but if someone is offering you time to help...you also need to be precise with questions. I did solved your problem by suggesting you the correct way to do it. Do you want me to write code for you as well?? Try the solution and then let the group know about error. On Wed, Au

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Asad ur Rehman
M hashmi if someone is not doing question up to the mark you have to guide him/her. We are here for learning not for criticize each other. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Asad ur Rehman
M Hashmi Now tell me can you solve my problem or you are only here to criticize others ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr..

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Asad ur Rehman
*M Hashmi* Here is my file format. i want to create it as it is instead of *name*. i want to get name Gateway.objects.values_list('name') by this query ... and then file make in etc/freeswitch/sip_profiles/external directory ..

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread M Hashmi
Dear Asad, Google is trying to build such a technology that can help transmit brain waves connected via neurons to some media such as wifi or wire. Till the time its not a reality...you have to paste your complete code to get help because no one can read your mind without you telling or expla

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread Asad ur Rehman
Sir whats its solution ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-u

Re: How to create Xlm file in specific folder ?

2016-08-10 Thread ludovic coues
That sound like a python problem. How to open a file and write in it. 2016-08-10 12:46 GMT+02:00 Asad ur Rehman : > I want to create xlm file in django in this path > "etc/freeswitch/sip_profiles/external" . > > Gateway.objects.values_list('name') > > this should be included in file. How can i cre

How to create Xlm file in specific folder ?

2016-08-10 Thread Asad ur Rehman
I want to create xlm file in django in this path "etc/freeswitch/sip_profiles/external" . Gateway.objects.values_list('name') this should be included in file. How can i create function for it. Can anyone help me ? If you don't understand tell i will explain you more but please help me. Than