Re: Interaction of Python Code with Django.

2015-05-13 Thread SUBHABRATA BANERJEE
Hi Palansh, May I ask you two or three quick questions. a) Am I understanding fine? b) I wrote a Python Script, and wanted to port it with Django restonframework. I could do upto Django restonframework. How may I go next? If you may kindly suggest. Regards, Subhabrata Banerjee. On Tuesday, May

Re: Interaction of Python Code with Django.

2015-05-13 Thread SUBHABRATA BANERJEE
Thanks, but that is more or less on Flask. In Django I could do Rest with restonframeworks. Now I have to integrate it with my existing code in Python. Palansh has developed almost similar but I am looking for an interactive rest based django api for my interactive python code. Seems bit stuck.

Re: Interaction of Python Code with Django.

2015-05-13 Thread sarfaraz ahmed
werkzeug is another debug tool which let you write and test code via browser itself. Regards, Sarfaraz Ahmed On Wed, May 13, 2015 at 3:43 PM, SUBHABRATA BANERJEE < subhabrata.bane...@gmail.com> wrote: > Hi Palansh, > > Thank you for your prompt answer, is it, > return HttpResponse(template.rend

Re: Interaction of Python Code with Django.

2015-05-13 Thread palansh agarwal
Hi, Yes you got it right. On Wed, May 13, 2015 at 3:43 PM, SUBHABRATA BANERJEE < subhabrata.bane...@gmail.com> wrote: > Hi Palansh, > > Thank you for your prompt answer, is it, > return HttpResponse(template.render(context)) > > https://docs.djangoproject.com/en/1.8/intro/tutorial03/ > under > Wr

Re: Interaction of Python Code with Django.

2015-05-13 Thread SUBHABRATA BANERJEE
Hi Palansh, Thank you for your prompt answer, is it, return HttpResponse(template.render(context)) https://docs.djangoproject.com/en/1.8/intro/tutorial03/ under Write views that actually do something and you have worked out views.py Regards, Subhabrata Banerjee. On Wednesday, May 13, 2015 at

Re: Interaction of Python Code with Django.

2015-05-13 Thread palansh agarwal
Hello, I suggest you go through django official docs first. The methods in views.py returns response on a HTML templates. Look for them and try to understand the workflow. On Wed, May 13, 2015 at 3:10 PM, SUBHABRATA BANERJEE < subhabrata.bane...@gmail.com> wrote: > Thanks Palansh. I have few ques

Re: Interaction of Python Code with Django.

2015-05-13 Thread SUBHABRATA BANERJEE
Thanks Palansh. I have few questions here. a) I saw you have created a job search engine. I found its html source. Nice. b) I found your Django codes. My questions are, i) Where you are calling html source in your django code. ii) Is there any tutorial to learn this? I wanted to know it. Tha

Re: Interaction of Python Code with Django.

2015-05-12 Thread Gergely Polonkai
The tricky part here is providing the input for the interactive tool. For shell scripts there is a software called expect, you may want to look for Python alternatives. Of course, if this interactive tool reads sequential input from stdin and sends output to stdout, there are much easier solutions,

Re: Interaction of Python Code with Django.

2015-05-12 Thread palansh agarwal
Hi, https://github.com/py-geek/Startup-job-search look at the code in this repo an try to understand. It's a simple job search portal developed by me. A simple way is to use a simple HTML form and map it's action attribute to a url. map that url to a method in your urls.py file. write this method

Interaction of Python Code with Django.

2015-05-12 Thread SUBHABRATA BANERJEE
Dear Group, I want to integrate an interactive Python code, (it takes user input, processes input and gives output), with Django. I am new to Django, using Python2.7.9 on Windows 7 Professional. I am researching on it, but as it is a room for Django experts, I am trying to post this question,