Python Forum

Full Version: Django deployment on apache server?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey
I have just created by first django project locally on my machine.

How would I go about deploying that to a VPS running linux and apache?

Any help, guides, hints much appriciated

Thanks

It should be noted, that I created my django project locally, in a virtualenv - i like that to be done on the VPS as well.

I am used to PHP projects, where I just copy my codebase to the folder, where the website gonna be, and the virtualhost is pointing to.

But I guess, there needs a bit more done with python and virtualenv?
Look at How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 18.04
Setup is for DO,but work from most host(VPS) when eg start on blank Ubuntu 18 distro.
Quote:I am used to PHP projects, where I just copy my codebase to the folder, where the website gonna be, and the virtualhost is pointing to.
I can also by smart to make a Git Repo,GitHub,Bitbucket... then can clone or push files to server.
Look at Django for beginners there is demo of deploy to Heroku and getting files for GitHub.

AWS Lambda is also option for not managing servers.
Thanks for the link, tryed that and a few others...

After around the 10th I startet seeing the meaning of it all - and now I have it working, thanks:)