Deploy Django to Ubuntu LAMP

Posted March 6, 2016 8.1k views
LAMP StackDjangoDeployment

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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.

by Justin Ellingwood
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...