Python Forum
Django deployment on apache server?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Django deployment on apache server?
#1
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?
Reply
#2
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.
Reply
#3
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:)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Apache Module jfha73 2 488 Jan-26-2024, 07:59 PM
Last Post: noisefloor
Question Flask, Self-hosted deployment, which server ? SpongeB0B 1 3,008 Apr-11-2021, 11:29 AM
Last Post: snippsat
  Flask deployment from heck lmolter54 4 2,515 Jun-04-2020, 09:08 PM
Last Post: lmolter54
  Where is mod_wsgi for Apache on Windows? jfha73 0 1,623 May-01-2020, 02:21 PM
Last Post: jfha73
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 3,293 Jun-30-2019, 12:21 AM
Last Post: scidam
  How to deploy Django application on Apache2 server deepag 0 2,036 Jan-23-2019, 05:09 AM
Last Post: deepag
  Python handling Apache Request harzsr 3 3,781 Nov-16-2018, 04:36 AM
Last Post: nilamo
  Enable error logging to browser for Python's Flask under Apache + mod_wsgi nikos 1 3,042 Sep-18-2018, 09:15 PM
Last Post: nikos
  Django Deployment Problem DoktorSoosMann 0 1,941 Aug-16-2018, 01:42 PM
Last Post: DoktorSoosMann
  Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet) Drone4four 2 9,083 Jan-26-2018, 06:44 AM
Last Post: Drone4four

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020