Deploy Django to Ubuntu LAMP

March 6, 2016 1.1k views
Django Deployment LAMP Stack

I am running a LAMP image on Ubuntu 14.04. I want to run a Django app alongside to gather data off the same MySQL database.

I've looked through WSGI tutorials, but haven't found anything to help me get this running from the web. I put my project in the /var/www folder.

I have the Django app running on my laptop, but how can I move it to my droplet and access it through the web?

1 Answer


I took this guide and ran it along side a droplet I already had a site running on Apache and it worked without any issue. Can you give that a try?

You do not have to use the test app, you can copy over your app directly. You will just use your application settings instead of the test app settings when configuring things.

Since you already have Apache installed as well, you can ignore setting that up, aside from the VirtualHost. You will still need to configure that.

Django is a powerful web framework that can help you get your Python application or website off the ground quickly. Django includes a simplified development server for testing your code locally, but for anything even slightly production related, a more secure and powerful web...
Have another answer? Share your knowledge.