Django: Getting Started Transcripts
Chapter: Deploying Django Webapps
Lecture: Hosting example: Opalstack

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Exactly what configuration you need to do will depend on where and how you are hosting. My personal favorite provider is called opal stack.
0:11 I'm not associated with them in any way. I just do host some of my content there and I'm happy with their service.
0:17 From them you can get a small virtual or dedicated machine for your needs and they give you ssh access to the instance along with a web based dashboard
0:25 to do some conflict. It provides a hosted postgres if you wish to use their database and all of it is fronted by NginX.
0:34 It has a concept of pre rolled applications that you can use to quickly configure. One of them is Django where you can put all your project files.
0:43 Another one is for serving static files where you can point your collect static command. And of course to do the media,
0:50 you can just use the same kind of service as the static one but put it in a different directory and change the permissions appropriately.
0:58 Inside of the opal stack dashboard you wire up some URLs typically pointing slash static to the static app slash media to the media app and
1:07 slash to the Django app. Anything not under slash static or slash media will get sent to your project. And you're set up and set ot go.

Talk Python's Mastodon Michael Kennedy's Mastodon