The Django syntax error on migrating is very annoying, specially when you don’t find any error when looking for one. This post contains a working solution.
Table of contents
I…
Abdur-Rahmaan Janhangeer
Chef
web development
How To Have Django Packages in Flask
Django packages in Flask seems like a far-away dream, but shopyo 4.6.0 allows you to install Shopyo apps from pypi.
What is Shopyo?
Sh…
Abdur-Rahmaan Janhangeer
Chef
web development
How to integrate P5JS with Flask-SocketIO
P5Js is an implementation of processing.org’s library in JavaSript. It can be thought of as a canvas management library. Integrating such a library with a common backend like Flask unlocks amazing …
Abdur-Rahmaan Janhangeer
Chef
web development
Build A Note App In Flask As Fast As It Can Get (Using Shopyo)
Shopyo is a framework to get started with Flask really quick. It includes several libraries to get started by default. In this tutorial we will build…
Abdur-Rahmaan Janhangeer
Chef
web development
How to Integrate Tinymce 5 with Flask (with csrf)
This article shows how to integrate Tinymce 5 with Flask even including csrf protection!
Text area
<textarea id="content"></textarea>
…
Abdur-Rahmaan Janhangeer
Chef
web development
How to get server response from DropzoneJs for chunk uploads
After much struggling, here’s the magical formula we got for getting the server response back for chunck uploads:
var myDropzone = new Dropzone(document.body,…
Abdur-Rahmaan Janhangeer
Chef
web development
Why Choose Flask Over FastAPI
FastAPI positions itself as one of the best choices for API development in Python. The project is polished for sure, the …
Abdur-Rahmaan Janhangeer
Chef
web development
How to implement beautiful notifications in Flask
Since you already know how to implement notifications, let’s see how to implement beautiful notifications in Flask.…
Abdur-Rahmaan Janhangeer
Chef
web development
How to implement notification in Flask
Implementing notifications in Flask goes way beyond using flash. You have to add this snippet in your templates:
<div id="flashed-messages">
{% with m…
Abdur-Rahmaan Janhangeer
Chef
web development
How to Define Global Template Variables in Flask
When building Flask applications, it is very common to reuse the same variables across multiple templates. These may include application-level configuration, branding details, environment flags, or…
Abdur-Rahmaan Janhangeer
Chef
web development
How to use Flask-admin with Flask-login
Steps:
Have a login route accept a next parameter
Define your model view and admin index view
Register models
In the example below, auth.login is the lo…
Abdur-Rahmaan Janhangeer
Chef
web development
How to correctly use the next parameter in login and logout in Flask
Here is a sample login and logout route taken from the shopyo web framework. You can learn …
Abdur-Rahmaan Janhangeer
Chef
web development
How to run a Flask Linux-only App on Windows - The AFPy Site
There are in the Python world many Flask Linux-only apps. However in many case, with some twerking we can make them work on Windows. We’ll take the case of the AFPy site.
First fork the …
Abdur-Rahmaan Janhangeer
Chef
web development
An Advanced Flask App: Shopyo
Shopyo is an Ope…
Abdur-Rahmaan Janhangeer
Chef
web development
Building a Web Mail Client with Flask and Raspberry Pi
Have you ever wondered how web-based email clients like Gmail or Outlook actually work? At their core, they are web applications that take user input and send it to an email server. In this tutoria…