0

I have written a python script that extracts data from flickr site, and dump as a python class object and YAML file.

I was planning to turn this into a website:

  • and a simple html front page that can send a request to the backend, triggers the python scripts running on the backend

  • the response will be parsed and render as a table on the html page.

Are there any suggestions for building this application? Any framework or technologies i should use? For example, i guess i should use ajax in the front end, how about the backend?

desertnaut
60.8k32 gold badges155 silver badges183 bronze badges
asked Feb 11, 2014 at 14:44
1
  • 1
    If you only have a single script you can run it directly as a CGI script on the server (see here and here), no need for a framework. And in your example it looks like you're assuming that AJAX is a framework; it's not. Commented Feb 11, 2014 at 14:47

2 Answers 2

2

You can look on Django or Flask. As for me, Flask is much better for you, because it smallest and simplier. You can read about building Flask app here: http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world And about Django here: http://www.djangobook.com/en/2.0/index.html I used both for building applications with AJAX.

Please note that Django has better Python 3 support.

Also you can see on Bottle or something other. Try google if you'll dislike Django and Flask. For example, comparison of Python web frameworks: http://www.sixfeetup.com/blog/4-python-web-frameworks-compared

answered Feb 11, 2014 at 15:17
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot, I will go for Flask!
0

you should use Django framework for your app. You can integrate your scripts into Django views. And you can also use the loaddata system in order to insert your yaml data into the database

answered Feb 11, 2014 at 14:47

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.