Porting Django app

28 views
Skip to first unread message

RLM

unread,
May 16, 2019, 5:59:47 AM5/16/19
to django...@googlegroups.com
Hello all.
I eventually will need to put my dedicated Django app on another system
owned by a Public institution. The app correlates each data set of 26
million plus samples to a QR code for each.
Security is major  so nothing can be web based, it must be in house and
disconnected from the external web.

A problem is I'm developing on Linux and Mac and much of the world uses
Windows 10 et al.

Installation of python3, Django, mysql and the app would rely on the IT
people at the institution who do not like installing software on secure
systems.
I would also point out that schools here also fall into the "will not
install that software" category significantly limiting student's ability
to learn modern systems.

I trialed compiling Python3 app to an .exe file, works ok, but am
concerned that P3/Django will not do so.

Bio: I'm in my 70's, been developing web apps for 25 years and do not
want to learn C and C++.

Can anyone advise me how to go about providing the system at minimum
problems for the IT sector of the institution.
Thanks in  advance

Roger

Chetan Ganji

unread,
May 17, 2019, 2:52:18 PM5/17/19
to django...@googlegroups.com
I understand the pain of a Linux user ;) You don't need to port anything at all ;-) 

RE:  nothing can be web based, it must be in house and 

disconnected from the external web.

As there would be multiple users using the same instance of the software, a web app is that they need.
That way all the data and the actual app is located in a centralised location.

Use any stack, you will end up creating a webapp for this scenario.

Solution - 
Create the app in Python 3.7 and Django 2.2. Give them a desktop pc with Ubuntu 18.04 LTS installed. 
Install Nginx + Gunicorn + Python 3.7 + Django 2.2 on this desktop. Get everything up and running. 
This desktop becomes their new server for this app.

The only difference here will be that instead of hosting the server on at a hosting providers location i.e. in the cloud, 
above server would would be located locally on their premises. This server would be different from their servers/pcs.
So they would have to use the app in a LAN setting i.e. access the app using local ip instead of a web domain.
Just remember to charge them for the desktop server you will provide ;-) 

Use AMD Ryzen or Threadripper for the server as they have more cores and threading enabled, 
they will be better than intel based cpus for a server pc. 

If they don't want your server, ask them to buy a separate one for this app.

This way, 
  1. They can use whichever OS they want to use. 
  2. Keep their security policy "NADA, NOT GONNA INSTALL THAT". 
  3. Get more security as their webserver need not be connected to internet at all.
  4. They don't have to install any third party softwares on their so called secure servers/pcs.
  5. Store everything in a centralised location. 
  6. You don't have to learn C or C++.
  7. You get to pay me $1000 for consulting, LOLZ. Just kidding :) 
 
I hope it helps :) 


Regards,
Chetan Ganji
+91-900-483-4183


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f68670b3-a75d-61ef-2f5b-61065e5a9f56%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ganesh Babu

unread,
May 18, 2019, 12:12:37 AM5/18/19
to django...@googlegroups.com
i understand what you are saying..  To collect private IP address or create as Virtual host in LINUX server, its should available.

On Thu, May 16, 2019 at 3:29 PM RLM <ukepl...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f68670b3-a75d-61ef-2f5b-61065e5a9f56%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
Best Regards
Sri Ganesh Babu.S
Sr. Software Engineer,

Doyen Solutions


Chetan Ganji

unread,
May 19, 2019, 10:45:19 AM5/19/19
to django...@googlegroups.com
Python is said to be interpreted language. But the c python implementation is exactly like java 
i.e. is compiled + interpreted and runs on a virtual machine. Maybe that how Java got their idea :P 

Pypy is another python implementation which has a JIT compiler, please check if it helps your scenario. 


Regards,
Chetan Ganji
+91-900-483-4183

PASCUAL Eric

unread,
May 19, 2019, 1:18:34 PM5/19/19
to django...@googlegroups.com
Hi,

You can avoid dealing with IPs directly, considering that mDNS is available by default on Debian based distros (hence Ubuntu). Thanks to this, the server is published as "<hostname>.local". 

mDNS is not installed by default in Windows, but it seems that it changed with Windows 10.

Best
Eric


From: django...@googlegroups.com <django...@googlegroups.com> on behalf of Ganesh Babu <gan...@gmail.com>
Sent: Saturday, May 18, 2019 06:11
To: django...@googlegroups.com
Subject: Re: Porting Django app
 
Reply all
Reply to author
Forward
0 new messages