Django + Flutter to mobile and desktop

Here is what am trying to do:

We are building an application that has two forms, mobile and a desktop application for an inventory management system. Now, what we want is that the mobile application should be built with Flutter, but the backend should be a Django-based application.

The Django-based application is such that when you install the Flutter application, the Django backend - the Django is converted such that it can be embeded in the flutter app and it is being executed - such that the backend is within , the Flutter application. At the end the flutter should be installed on an android os

So, for example, when you install the Flutter application, it starts up the Django application, and when you close the Flutter application, it closes the Django backeend . Somehow, the Flutter application is containing the Django backend, and somehow the backend is not hosted separately.

This is because we don’t want to host the backend separately. Now, for the desktop application, we want it to be built with Django, and the frontend also with HTML and CSS, that means a full-stack Django single application, but converted to an executable, such that we can just with a single click or two clicks, we can install the application (same backend as on the fullter application)on any Windows laptop or desktop Windows desktop, and the application runs smoothly without usually configuring the backend separately and the frontend separately.

We just need one click, and then it’s gone - the entire application. Now, the system is supposed to have a centralized database system, where the Jungle, the desktop, and the mobile, that have their own backends, are synchronized with a central database system online, and they also have local databases for both the mobile application and the desktop application

any idea how feasible this is

Why do you want to build desktop and mobile apps, but no website, using technology designed for making websites?

i want a firendly technology, the client want desktop, he cant pay for far apart technologies

Good luck with that. (Seriously - this is not a sarcastic comment.)

Yes, it can be done, at least as far as the desktop environment is concerned. I’m not sure how practical this is with mobile - and it’s going to depend upon whether you’re talking about iPhone or Android, because each of those is going to require their own solution.

But I’d be willing to wager that trying to make this work appropriately across these platforms is going to take at least as long in development time as it would to develop them each of them individually using the appropriate tools (not counting the time necessary to learn those tools).

Also, creating a “Browser-based” app for the Windows desktop seems extremely limiting from a UI/UX perspective. Is the client going to be happy with a native application built on html as opposed to the native Windows UI?

thanks for your response; th client is concentrating the out put and sim to to concern himself what happens but we have four months an application that has a desktop version, and mobile version function both online and offline, inventory management including things like bar code scans and we cant build two separate apps will it be advisable to just use flutter ?/ but Django does make development easy

I’m not an expert in any way, but Django web app (as a Progressive Web Application) would cover all described requirements. No need in Flutter.

so what u are saying is Django can be exported as the mobile and Desktop app?/

How large is your staff? Does your staff have the necessary expertise for supporting these three (four) platforms?

Four months seems extremely aggressive to me for all this for a small shop.

Like I said before - good luck, I think you’re going to need it.

Sorry, I don’t see how this handles an offline / standalone implementation as described in the original post.

yes my staff is okay using flutter for mobile development and Django for web development

No. But it can be installed as PWA.

I probably didn’t quite understand. Sorry.

PWA! it looks like away to go due some of the requirements are not meet can u please refer me to some work i can follow

I’d start here: Progressive web apps | MDN, it provides links to further resources.

okay after looking at PWA we be unable to perform dynamic action that require sever side actions like login registration or server side actions this posses a problem cause the app should be able to work independently offline and synchronize with the online database when connected to the internet, for both desktop and android

I’m not sure you’ve looked deeply enough. A PWA is a web app, and can do anything that any other web application can do.

The use of service workers and local storage also allows you to work offline when the online connection is unavailable.

See What is a progressive web app? - Progressive web apps | MDN

what about interacting with the server

What about it? I’m not sure I understand the question.

with PWA is like a hybrid but to do things like login or registration u need the server our app needs to be able to do that offline

For it to make any sense, that’s correct. But it doesn’t make sense to try and force a login or user registration with a desktop or local application - the user has already authenticated to get the desktop.
(You could replicate the User’s instance of the User model in to the local storage of the app, with a process to re-hash the password for the user’s environment, but that really doesn’t make sense to me.)

All data replicated to the user’s system is going to be available to that user. What do you think you’re protecting by requiring user-local login?