How to deploy Django app not using Localhost

337
March 03, 2017, at 08:47 AM

We have created an app for a production facility that is very simple using django and python. But throughout prototyping we used Runserver command and localhost. The problem is this: We want to deploy the app without using localhost and the command line every time. The people using it wont be able to do this. It will be on implemented on one computer so it shouldnt be that challenging. The app pulls data from one database and stores data in another. It would be nice to have our own URL. Do we need to do it through wsgi? Apache? I know the problem is simple but there seem to be so many ways to deploy and many of them are overcomplicated for our needs.

Follow up question: I read that it just using Localhost isnt the best for this type of thing. Is this true?

Any help would be great

Answer 1

It sounds like you want to deploy the app live. So, I'd recommend using a dynamic hosting service like AWS/Azure/Firebase etc. If you want your own URL, purchase a domain, and in the configuration for the domain set up a CNAME file as well so you can redirect your domain to the live instance on the cloud.

Local host is better used for testing, and making changes without affecting the client and then you deploy/push to the cloud instance for production.

READ ALSO
Correspondence between PCA principal components and the original variables

Correspondence between PCA principal components and the original variables

I'm want to apply PCA to the kaggle's Titanic dataset

249
sum pixels values of 3D array images and add them to a 1D array

sum pixels values of 3D array images and add them to a 1D array

I am struggling with this problemi have a 3D array of images, the first D is the time the other two are the rows and columns of each image

210
Why my global variable doesn't change? python [on hold]

Why my global variable doesn't change? python [on hold]

I have this little codeButtons that I want to enlarge or shrink as i click on them and do one or another depending on a global variable controlled by other button

294
robot framework - how to set variable to valueX if buffer contain a string else set to ValueY

robot framework - how to set variable to valueX if buffer contain a string else set to ValueY

In robot framework how can you implement below python construct ?

385