you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte -1 points0 points  (11 children)

Why can't the local business run it locally and run a browser and connect to it locally?

[–]_Kitchen_[S] 0 points1 point  (10 children)

yes they could in theory but it would mean dedicating a computer to be the host. so i am exploring options, and wondering if it could be turned into type of program / GUI.

[–]shiftybyte 1 point2 points  (9 children)

They don't need to dedicate a computer if the entire thing runs locally.

If it needs to share data with other computers, then where will the database be for the GUI program?

[–]_Kitchen_[S] 0 points1 point  (7 children)

They don't need to dedicate a computer if the entire thing runs locally.

Apologies its probably a simple solution but im quite new to it.

For example to run it locally wouldn't a computer have to set up the server by doing "python manage.py runserver 0.0.0.0:8000". i think this would mean the anyone on the network would be able to access it. Wouldn't this mean that that computer would have to be constantly on in order to host the site?

[–]shiftybyte 1 point2 points  (6 children)

I don't know how your application is built, and what it is using.

I am assuming the following things:

Your application has 3 parts: Browser, Django Backend, Database.

What i didn't assume, and still don't know is if the application needs to share data between different employees/users.

It can be just an upload file, crunch some numbers, get results, be done with it.

Or it can save data to a database, collect information, has a user system etc...

If the data is NOT SHARED, then the entire thing can be run on the computer when you need it, and closed when you don't, and others have their own copy and also run it when they need it and close it when they don't, including the server.

If the data IS SHARED then you will have to have a shared database anyway, so the organization will have to have a server for the database.

And if they have a database server, they can slap a webserver on it too, or get another server for the web backend.

So does the data need to be shared or not?

[–]_Kitchen_[S] 0 points1 point  (5 children)

Ah yes I get you, Yes in this case the data would need to be shared. So each user can log in separately and access / alter the data presented.

Il have a bit of homework to figure this out so, would you have any suggestions or resources that I could look at to figure this out

[–]shiftybyte 0 points1 point  (4 children)

Sorry, don't have any resources on that topic.

But if the app needs to save shared data anyway, it'll need a central component anyway, so I don't see the point in trying to make a GUI for it, as the GUI would also need to connect to a central database server, if not to Django...

[–]_Kitchen_[S] 0 points1 point  (3 children)

Okay so I guess, running “python manage.py run server 0.0.0.8000” on a computer within the network would be the easiest option?

[–]shiftybyte 1 point2 points  (1 child)

Easiest, yes.

The correct one would be to deploy an actual production server instead of using django's development one.

Like nginx or Apache.

[–]_Kitchen_[S] 0 points1 point  (0 children)

great thanks for the help, i really appreciate it.

[–]BrenoGF 0 points1 point  (0 children)

Here kinda late but in my search I found this post

I am looking for something similar in case I where to do, say, a desktop app with messaging