i do not manage to deploy my web application.
I am using Python 3.4 Django1.7.b4 Django-bootstrap3 Apache2 Mod_wsgi Vitualenvironment Droplet Ubuntu 14.4
I have a running django application local on my window pc by running this cmd line Python manage.py runserver
Now I try to deploy it on my vps and I do not know We’re do I have to copy my django application? In which folder? Apache site config need virtual host configuration, but I have not domain name for the moment I will by one later but I would to see my web application on Internet by entering the fix ip of my droplet.
Could you please help me?
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.
This comment has been deleted
Hey! There are a lot of ways to deploy a Django project. Are you running into a specific issue?
To deploy a Python app in a virtualenv using Mod_wsgi and Apache, first install the dependencies:
Now put your Django project files onto the server and create your virtualenv. Generally a directory in
/var/www/
will do. They key is to make sure to use the correct path is in your Apache configuration. If your virtualenv is located in/var/www/myapp/
then your Apache config (/etc/apache2/sites-enabled/000-default.conf
) would be:For more details, check out the article How to Run Django with mod_wsgi and Apache with a virtualenv Python environment on a Debian VPS