+ 5

Best way to implement Python in web applications?

How does one go about using Python in a web application?

14th Jun 2018, 6:12 PM
Aletay
Aletay - avatar
4 Answers
+ 10
If you're looking for server side programming with databases and html templates etc, I think Django is great, along with Pyramid. However, I use Flask ( http://flask.pocoo.org/) for this since it is easy to use, learn and deploy even though it may not have as much support as the before mentioned 2 framework since it's just a microframework, using the Jinja2 templating engine, including a development test server with it's own debugger. On the other hand, if you're going for client-side programming (i.e. in browser implementation ) You can look up .NET Ironpython or even Brython which uses python like javascript. https://opensourceforu.com/2017/02/web-development-with-python/ https://stackoverflow.com/questions/8041501/how-to-develop-a-simple-web-application-with-server-side-python
14th Jun 2018, 6:24 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
Which one is good for beginners Django or Flask?
15th Jun 2018, 9:41 AM
NitroO
NitroO - avatar
+ 1
NitroO , Flask is more compact and easier to understand, suitable for small-mid size projects and API exposure. If you are looking for a framework to develop full web app i would suggest to start with Django, its worth it.
15th Jun 2018, 10:52 AM
Qwertiony
Qwertiony - avatar
+ 1
Use Flask to help
15th Jun 2018, 5:17 PM
Here to help problems!