How to see error in django coding while i am using it through server/web ?

2016-07-18 Thread Asad ur Rehman
Hello ! i am using django. when i tested it always gives Urls error instead of correct error .. How can i get correct error instead of Urls error. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Re: How to see error in django coding while i am using it through server/web ?

2016-07-19 Thread Asad ur Rehman
@Arindam sarkar i am us On Monday, July 18, 2016 at 9:47:21 PM UTC+5, Asad ur Rehman wrote: > > Hello ! i am using django. when i tested it always gives Urls error > instead of correct error .. How can i get correct error instead of Urls > error. > -- You received this mess

Re: How to see error in django coding while i am using it through server/web ?

2016-07-19 Thread Asad ur Rehman
Sir i am using python/django in server which is given by my company.server is connected with putty to run commands.I want to get information about how to see errors in django when we are using it in specific server On Monday, July 18, 2016 at 9:47:21 PM UTC+5, Asad ur Rehman wrote: > >

For loop did not working ...

2016-07-20 Thread Asad ur Rehman
In image tou can see *Pending* Box. i want to generate loop and want to get result against values in loop.in image 668 is the value of first Column.i want to give different values to column by loop Pending = pending(8) pending(8) give first column result that is 668. Id = [2,3,4,5,6,7,8]

Re: For loop did not working ...

2016-07-20 Thread Asad ur Rehman
No module name urls error is showing. -- 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 emai

Re: For loop did not working ...

2016-07-20 Thread Asad ur Rehman
def campaign_list(request): """List all campaigns for the logged in user **Attributes**: * ``template`` - dialer_campaign/campaign/list.html **Logic Description**: * List all campaigns belonging to the logged in user """ form = CampaignSearchForm(request.user

How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
I want to run *fs_cli -x *command in django . Can anybody help me ? How can i create function in django to execute this command ? -- 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, s

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
#Mattias muller there is error while i am import sh ... How to sort it ? On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? &

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
from sh import fs_cli this is also not working ... On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You received

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
sh is already installed On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You received this message because you are subsc

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
Internal server error is coming.. On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You received this message bec

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You received this message because you are subscribed to the Google Gro

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
tail -f /var/log/newfies/gunicorn_newfies_dialer.log when i try to find error through this always give no module named urls. Debug is already = True On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody h

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

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 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 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 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
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 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
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

How to split value where is comma ?

2016-09-07 Thread Asad ur Rehman
Here is my view.py import os.path import commands def call_report(request): a = commands.getstatusoutput('/usr/local/freeswitch/bin/fs_cli -x "show calls"') return HttpResponse(a) When i run this command it gives output which you can see... 0uuid,direction,created,created_epoch,nam