Django Clone From Scratch With Flask

How to effectively mimick most of Django features with Flask, apps included.

Abdur-Rahmaan Janhangeer

Web Servers and MicroFWs (Flask/Tornado/Nginx/...)

See in schedule

With Python, when thinking of web frameworks, two that come into mind are Django and Flask. Instead of having to choose one of the two, this session shows how you can engineer Flask to achieve a simili-Django app. It's a dive into the internal components of Django and the idea behind. The session covers different Flask development patterns to finally finish with an app that's functionally similar to Django with some extra features in for free. It also lists some caveats identified with such a pattern. This session requires attendees to know Flask and having used Django for building at least one project. At the very least it assumes the knowledge of models, views, controller, templates and migrations. It discusses along the way the educational and pedagogical aspect of learning web frameworks and proposes a syllabus. It discusses the benefits of learning Flask and the necessity of learning the two as a Pythonista. Django is the go-to framework for web development and it's no surprise that most freelancing jobs require Django. Flask is appreciated for the flexibility it gives. The session also touches about how we can better promote Flask through education. The session finishes with the hurdles identified when getting started with web development in Python, pulled from personal teaching experience.

Type: Talk (45 mins); Python level: Advanced; Domain level: Advanced


Abdur-Rahmaan Janhangeer

CompilerAlchemy

Independent Python Developer in Mauritius & Python Mauritius User Group organising member.