Report this

What is the reason for this report?

Deploy Django to Ubuntu LAMP

Posted on March 6, 2016

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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello,

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.