Deploy Your App: Announcing the Talk Python in Production book.

Django Simple Deploy and other DevOps Things

Episode #500, published Thu, Apr 10, 2025, recorded Thu, Feb 20, 2025

We're sitting down with Eric Matthes, the educator, author, and developer behind Django Simple Deploy. If you've ever struggled with taking that final step of getting your Django app onto a live server (without spending days wrestling with DevOps complexities), then give Django Simple Deploy a look. Eric shares how Django Simple Deploy automates away the boilerplate parts of deployment, so you can focus on building features instead of deciphering endless configs. We'll talk about this new project's journey to 1.0, the range of hosting platforms it supports, and why it's not just for beginners.

Watch this episode on YouTube
Play on YouTube
Watch the live stream version

Episode Deep Dive

Guest introduction and background

Eric Matthes is an educator, author, and Python developer well known for his book Python Crash Course. He has spent many years teaching math and science, and regularly weaves that teaching background into his software projects. Eric has lived in places ranging from Alaska to North Carolina and has developed numerous practical, small-scale Django applications, from automating school processes to supporting whale research. In this episode, he shares the story and vision behind Django Simple Deploy, an open-source tool that smooths out the often-daunting final step of taking a Django project live.

What to Know If You're New to Python

  • Become comfortable with basic Python syntax, especially organizing code into modules and understanding how to work with virtual environments.
  • Understand the basics of Django's "app" structure and how to run a Django project locally (python manage.py runserver).
  • Familiarize yourself with Git version control since deploying with Django Simple Deploy often involves Git or similar CLI tools.
  • Recognize core deployment concepts such as environment variables and platform-specific settings so you can confidently tweak or review what Django Simple Deploy generates.

Key points and takeaways

  1. Django Simple Deploy: The Big Idea Django Simple Deploy automates the boilerplate aspects of getting a basic Django project onto a production server. It frees you from manually editing settings, creating configuration files, and wrestling with platform docs. You can go from "works on my machine" to a live URL by running a single management command. This project aims to make deployment a smoother, less intimidating process so you can focus on your application's actual features.
    • Links and tools:
      • Django
      • Django Simple Deploy (no official link mentioned in the show, but found at Eric's GitHub)
  2. Plugin-Based Approach for Multiple Hosting Providers Rather than bundling every platform's details into one library, Django Simple Deploy uses separate "plugins" for each hosting service. This design means each hosting configuration is maintained independently, and updates or new hosting targets can be introduced without affecting the entire system. It also creates a clear boundary between Django Simple Deploy's core logic and the provider-specific deployment requirements.
  3. Automated vs. Configuration-Only Deploy Mode Developers can choose between a fully automated mode (--automate all) or a configuration-only mode. Fully automated mode makes a Git commit, calls the platform's CLI, and spins up your app in a new browser window, great for quick demos or smaller projects. Configuration-only mode stops just before committing and deploying, letting you review the changes to your settings or files for more control.
    • Links and tools:
      • Git
      • python manage.py deploy --automate all (Django Simple Deploy command)
  4. Supported Platforms (And the Jump to VPS) Out of the box, Django Simple Deploy officially supports Fly.io, Heroku, and Platform.sh. But it's also expanding into "bare virtual private server" (VPS) territory, such as DigitalOcean, where you manage more of the Linux configuration yourself. This unlocks even more hosting choices and is an important step to cover advanced or specialized deployment scenarios.
  5. Deployment Friction as a Barrier Many developers build a great Django app locally but then get stuck on the final "deployment" step. Eric's experience teaching and working with newcomers revealed that confusion over production settings, environment variables, and platform docs often halts progress. Django Simple Deploy aims to remove that friction, giving new developers a clear path to share their projects with the world.
    • Tools and concepts:
      • Environment variables
      • Production vs. development settings
  6. Use Cases for Smaller Data-Driven Django Apps Eric highlighted practical side projects, like automating report cards or collecting whale research data, that never need massive, enterprise-scale DevOps. Having an approachable deployment tool helps these smaller yet impactful projects see the light of day, benefiting local communities, niche research, or specialized user groups.
    • Real-world examples:
      • Whale research data collection
      • School reporting tools
  7. Future Directions: Docker and Custom Plugins While Django Simple Deploy primarily automates standard configuration files and platform CLIs, it's flexible enough to incorporate Docker-based approaches. The plugin design encourages the community to tackle new providers and architectures, such as Dockerized workflows for Nginx/Caddy or more specialized services.
  8. Initial Success, Ongoing Maintenance Releasing the 1.0 version is a milestone guaranteeing stability. Yet the project's real test lies in continuously updating platform-specific plugins as Heroku, Fly.io, and others evolve. Long-term, Eric hopes more maintainers and providers will step in to keep the ecosystem current.
    • Concepts:
      • Plugin-based community contributions
      • Long-term versioning and updates
  9. Eric's Journey from Teaching to Programming Eric's background in teaching was a major influence in creating intuitive developer tools. He leverages his years spent explaining complex ideas to young students as he designs straightforward workflows and documentation. The personal story of losing his father, seeing unfinished coding projects, and deciding to publish finished work underpins his motivation to help others ship real-world apps.
    • Mentioned references:
      • Python Crash Course (Eric's book)
      • Tutoring math and physics as an on-ramp to software
  10. Empowering Learners and the Django Community Django Simple Deploy is more than a tool; it's also a teaching resource. Workshops like Django Girls or university courses can include full "from zero to deployed" experiences without devoting entire chapters to fiddly config details. This fosters a healthier Django community by giving both novices and experienced devs a dependable, consistent interface to production.

Interesting quotes and stories

"I had a bunch of side projects like my dad did, and I realized they'd just stay unfinished if I didn't figure out this deployment piece." – Eric Matthes

"Platforms want to be second-best for beginners, because if you draw all the brand new people, you're basically doing a lot of support for free." – Eric Matthes

"If you haven't already gone through the deployment process, for most people that's a cliff, and Django Simple Deploy is trying to remove that cliff." – Eric Matthes

Key definitions and terms

  • Platform as a Service (PaaS): A cloud offering where hosting providers manage much of the infrastructure and DevOps tasks behind the scenes, letting developers push code without dealing directly with servers.
  • Buildpack: A set of scripts or programs used by some platforms (e.g., Heroku) to detect, build, and configure applications automatically.
  • Environment Variables (ENV Vars): Key-value pairs that store configuration or secrets outside your application code to separate sensitive data from version control.
  • Plugin-Based Architecture: A design pattern where core logic is separate from platform-specific "plugins," allowing each plugin to handle details without interfering with the main application.

Learning resources

If you'd like to deepen your Django and Python expertise, here are a few recommended courses from Talk Python Training:

Overall takeaway

Django Simple Deploy represents a long-awaited breakthrough for simplifying how Django apps reach production. By automating or guiding key DevOps steps, and inviting the community to contribute custom plugins, Eric Matthes's project makes deployment more accessible and more maintainable. From beginners struggling with their first real-world app to seasoned devs wanting to skip repetitive boilerplate, Django Simple Deploy is a powerful tool that embodies Python's ethos of clarity, collaboration, and efficiency.

django-simple-deploy documentation: readthedocs.io
django-simple-deploy repository: github.com
Python Crash Course book: ehmatthes.github.io
Code Red: codered.cloud
Docker: docker.com
Caddy: caddyserver.com
Bunny.net CDN: bunny.net
Platform.sh: platform.sh
fly.io: fly.io
Heroku: heroku.com
Watch this episode on YouTube: youtube.com
Episode transcripts: talkpython.fm

--- Stay in touch with us ---
Subscribe to Talk Python on YouTube: youtube.com
Talk Python on Bluesky: @talkpython.fm at bsky.app
Talk Python on Mastodon: talkpython
Michael on Bluesky: @mkennedy.codes at bsky.app
Michael on Mastodon: mkennedy

Episode Transcript

Collapse transcript

00:00 We're sitting down with Eric Matthews, the educator, author, and developer behind Django Simple Deploy.

00:06 If you've ever struggled with taking the final step of getting your Django app onto a live server without spending days wrestling with DevOps complexities, then give Django Simple Deploy a look.

00:17 Eric shares how Django Simple Deploy automates away the boilerplate parts of deployment so you can focus on building features instead of deciphering endless configs.

00:26 We'll talk about the new project's journey to 1.0, the range of hosting platforms it supports, and why it's not just for beginners.

00:34 This is Talk Python to Me, episode 500, recorded February 20th, 2025.

00:42 Are you ready for your host, please?

00:44 You're listening to Michael Kennedy on Talk Python to Me.

00:48 Live from Portland, Oregon, and this segment was made with Python.

00:54 Welcome to Talk Python to Me, a weekly podcast on Python.

00:57 This is your host, Michael Kennedy. Follow me on Mastodon where I'm @mkennedy and follow the podcast using @talkpython, both accounts over at fosstodon.org and keep up with the show and listen to over nine years of episodes at talkpython.fm. If you want to be part of our live episodes, you can find the live streams over on YouTube. Subscribe to our YouTube channel over at talkpython.fm/youtube and get notified about upcoming shows. This episode is sponsored by worth recruiting worth recruiting specializes in placing senior level python developers and data scientists let worth help you find your next python opportunity at talkpython.fm/worth Eric welcome back to talk python great to have you here nice to see you again michael nice to see you as well last time we talked about your book right and now your project your deployment project i love talking about deployment because i think it's such an enabling technology or enabling skill and your project Django Simple Deploy is certainly in that realm.

02:00 Yes, I have appreciated your comments about deployment over the years.

02:04 Thanks. Well, they're a hard one. My skills in deployment are a hard one.

02:09 I kind of want to talk a little bit about the journey for people, but not yet.

02:16 Let's get a quick introduction of who is Eric. What do you do?

02:20 What's new in your life since the last time you were on the show?

02:22 Oh, gosh, yeah. It's all context for this project because this project ties together a lot of the different things that I've done.

02:29 Short version, I grew up in New Hampshire, moved to New York City, then moved to Alaska.

02:33 Just last year, I moved to Western North Carolina.

02:38 And I had a background in science. I studied physics in college and got pulled into teaching.

02:43 spent a long time teaching math and science, fifth grade through twelfth grade, which was super fun because it's not at the level of undergrad or grad work, but the questions young people ask always make things interesting. And I got pulled into programming because I always did it on the side. And I kind of felt like, I always felt like at some point, I might focus more on programming and less on classroom teaching. So for the past five, six years I've been a full-time writer and programmer.

03:15 It's been enjoyable. Yeah. And congrats on the move. You really like to sample different weather systems, different environments.

03:26 You're going to get a different summer experience in North Carolina than you might in Alaska. I know it gets warm somewhat there, but

03:32 it's warm a lot in North Carolina.

03:34 Yeah. We're in the mountains, so we can have cool nights at least.

03:37 Yeah. Lovely. My brother lives there and I think North Carolina is a really neat place.

03:41 It is, yes.

03:43 Yeah, yeah, yeah. So let's talk about this going from science to teaching to programming just a little bit, because I did a very similar journey. I think mine was accelerated in terms of its time frame, but I was in grad school. I studied math and then taught math, calculus, linear algebra, those kinds of things at universities at GTA, and then kind of got into programming as part of it. And then I'm like, wow, this is really fun. How do I, how do I do more of this? You know what I mean? And after evaluating it, just academia didn't seem like a thing I really wanted to try to chase. And so I basically, I took one or two programming classes, but otherwise, other than that, I taught myself programming a number of years ago. That is kind of scary. Last century, let's say. And I don't know, I feel totally confident about it these days, but at first it was, you know, do I belong here?

04:35 All these things seem hard. What am I doing wrong? Should I have gotten a CS degree? I don't think any of those things are true. I think just, you know, as I learned hanging out with CS people, it was hard for them too. Like it's, but maybe talk a little bit about your journey, right? Because I'm sure it would be helpful to other people. There's many people out there who are doing something somewhat similar.

04:55 Yeah. Questions about academia kind of steered me this way as well. I studied physics in undergrad because I started as a chemical engineer because I had a great chemistry class in high school. But I found that engineering classes felt like being taught how to solve other people's problems. And my favorite class as an undergrad or as a freshman was physics because it was the only class that really seemed about truly trying to understand the world. And I love that. So that's what led me to focus on physics. And I was going to be a particle physicist, but I did not want to

05:26 be...

05:26 Wanted to spend some time at sun or maybe outside of Chicago or wherever. Yeah. Okay.

05:31 Yeah. And I, yeah, when I was really young, I heard about atom smashers. I thought somebody like literally had hammers where they smash atoms.

05:40 So every stage, yes, every stage I learned more about it was more and more fascinating, but I didn't want to be a student forever. And so I want to do something outside of being a student before pursuing the graduate work that would get to get me to be a part of a physicist.

05:57 So when I was looking what to do, I had been a tutor in undergrad, and I tutored calculus and physics.

06:03 And I tutored those classes because I watched classmates start to hate math and physics because of how they were taught.

06:12 And that's the only reason people hated those topics.

06:14 And it was really humbling because I was 18, 19 years old and tutoring people in their 30s and 40s who were doing mid-career changes.

06:23 Speak of the field, like you maybe don't necessarily belong there telling someone how to do something.

06:29 But at the same time, you probably knew it really well, right?

06:32 Yeah.

06:33 Yeah.

06:34 And I felt like I belonged, but it was really humbling as far as just sorting out like school systems and where to go.

06:40 So anyway, that led me into teaching.

06:42 And I thought I would just teach for a couple of years and go back to science.

06:46 But I found that the challenge of reaching everybody in the classroom was as hard and as satisfying as hard science.

06:53 And so I just love teaching.

06:55 I love what it brings up for other people.

06:57 And, yeah, it's always stayed interesting.

07:02 For me, the transition into more of a focus on programming was my father died.

07:07 I've told this story a few times over the years about the origin of the book Python Crash Course.

07:11 But my father died in 2011.

07:13 And my mom asked.

07:14 He was a programmer.

07:15 That's how I first learned to program.

07:17 My mom asked me to go through his computer and she found all these, or she asked me to go through his computer to see if there was anything worth keeping.

07:24 And there wasn't, but for me, it was a really personal experience of seeing all these projects he had started.

07:30 They would never get finished.

07:31 And I realized that I had a bunch of those programming projects as well.

07:35 And so that kind of was a turning point for me to get me out of the practice of just building a bunch of side projects and start to focus on one or two real world projects that other people would benefit from.

07:47 That's a great story.

07:48 That's certainly one of the challenges of you can build a project and you can get it to run, but you're maybe halfway there, getting it out to the world in a real world sort of way.

08:00 You've got all these challenges of, I need to pick a place to run my app.

08:05 Wait a minute, databases?

08:06 Why are these migrations so hard?

08:08 How do I do migrations?

08:10 I got the first one up and now I can't change it.

08:12 just breaks it doesn't run anymore and you know there's just all these these aspects not even taking into account the stuff you got to add to go from a toy project to making it real logging error handling etc etc right yeah

08:25 i mean this is all a good segue into the topic of today i mean django simple deployed to kind of put it out there for people who haven't heard of it um it's a um package that automates deployment uh django deployments so if your project runs locally on your computer and you get to the point where you want to make it public for other people to use if you haven't already gone through the deployment process for most people that's a cliff and they kind of just fall off i spend all this time learning django all the time building this private they really care about solves the problem does it better than other people's work because you know it's new and whatnot and then they go to deploy it and they find that they have to spend so much time reading a platform's documentation um tweaking their settings um adding this file file and then kind of crossing your fingers and hoping that it works.

09:14 Every time I've gone through that process, I've kind of thought to myself, this is all just boilerplate.

09:20 Like we're just being told to, everybody's being told to add the same settings, make the same modifications.

09:25 And so I had that shower thought of like, automation.

09:29 Yeah.

09:29 Yeah.

09:30 I had that shower thought of like, okay, how could we do this configuration from the Django side?

09:35 So when we're just looking at the user's computer, you've got a project that's working We know it works.

09:42 How can we do all the configuration automatically so that you then just push your automatically, correctly configured project to your hosting platform?

09:51 So Jango Simple Deploy does that.

09:52 You pip install on Jango Simple Deploy.

09:54 You need to have a plugin for the platform that you're using.

09:57 So Fly.io is a go-to example.

10:01 And then you add Jango Simple Deploy to installed apps.

10:04 And then there's two modes for this project to work.

10:08 The fully automated mode is easier to talk about because you run one command, bifimanage.py deploy --automate all.

10:14 And if you do that and you have that platform CLI installed, it configures your project, makes a git commit, and pushes your project, and your project appears in a new browser window, which feels like magic.

10:28 That's kind of magical, actually.

10:30 Yeah, yeah.

10:32 All right.

10:32 So I want to talk about what platforms are supported.

10:36 But before we do, maybe we could talk more broadly about just hosting platforms that you've considered, that you see out there, that people publish Django apps to, right?

10:47 On one hand, we've got really, really straightforward platforms.

10:50 On the other, you can get as complicated as you want, basically.

10:53 You play the game of how many AWS services could you combine into one Django app, which, you know, that's kind of like the obfuscated code contest.

11:04 How much can you fit under one line that's unlegible but still does the thing or whatever, right?

11:09 You know, we started this with a conversation about our backgrounds.

11:13 And so kind of weaving this for a little bit back into that background story, I do remember one of my transitions to doing more professional programming work was when I was teaching, I would write programs to address inefficiencies and difficulties we had in our school for our staff.

11:28 And so I remember like exactly this, getting something that like automated report card generation for our staff.

11:36 And I got it working on my computer.

11:38 So like for me, writing report cards was so much easier than for everybody else.

11:42 And so I learned Django.

11:43 I'm like, cool, I can share this with everybody else.

11:45 And I tried to deploy it and it just, I could not do it.

11:49 It just fell apart.

11:51 And I sort of figured it out.

11:54 So my first deployment platform was a laptop in a closet in my school connected directly to the school network.

12:02 So the deployment worked for people on our network, and it was only out of the kindness of our IT staff that would allow me to do that.

12:09 Clearly not a solution for most people.

12:12 It's really hard to deploy. Let me just deploy my machine to the school.

12:17 Yes, yes. Update.

12:18 Let me go to that closet.

12:21 Yeah, yeah, yeah.

12:23 I'm going to be in here for a few hours. I'm programming on the server.

12:26 Yeah.

12:27 So, okay, Heroku is the first one to talk about because Heroku was one of the first platforms that really automated a lot of the DevOps work and allowed us the classic sales pitch for Heroku was run and get push Heroku main and your project is live.

12:43 There's always a bit more to it than that, including that configuration to make your project work on Heroku.

12:49 So the platforms I start thinking about are the ones that manage the DevOps aspect for you.

12:56 Heroku, Flyto.io, Platform.sh, Python Anywhere is in there.

13:03 So to take a step back even further, this project started because I used Heroku for a while.

13:10 In Python Crash Course, the first edition, I taught people, I walked people through deploying a Django project to Heroku.

13:17 is the only part of the book that felt like I'm not really teaching anything.

13:20 I'm just telling people to write certain things and add certain files.

13:24 A bit of explanation about what it does, but mostly it's, you know, make these changes and cross your fingers that you type them all right.

13:31 So I wrote a Heroku build pack that did the configuration automatically, but it did it on Heroku servers.

13:41 So you'd specify this build pack.

13:42 It would load that build pack onto Heroku servers, and then all your configuration changes would happen on their end.

13:48 Tell us what is a build pack.

13:50 I'm not sure that I can tell you.

13:52 It's basically, I said my short take is...

13:54 I'll tell you, I've never built a build pack myself, and I've deployed a lot of Python, so...

13:58 Yeah, my short description is it's a set of programs, body of code that configures your project for running on that specific platform.

14:10 Got it, okay.

14:11 And so typically it's generic and it's not targeting, it's not trying to do any changes to your project.

14:19 We won't go further.

14:20 I'll say something wrong.

14:21 Yeah, yeah, yeah, sounds good.

14:22 But the takeaway for that is it felt like doing Heroku's work for them.

14:26 And so it was nice for anybody trying to push Django to Heroku, but that boundary of like, what's our work?

14:31 What's their work?

14:31 Are we doing work free for them?

14:34 That's an interesting question.

14:35 And it really felt like it was skewed towards doing their work.

14:38 Right.

14:39 Well, I've done it once or twice, deployed an app to Heroku, never for real work, but to, you know, play around with it and sort of check it out.

14:47 Because Heroku was definitely a darling of the Python space and certainly of the Python tutorials, right?

14:56 Because for a long time, they had a free tier.

14:59 And so everybody who needed to deploy something was like, here's how you put it on Heroku to sort of complete the loop and get it out there in the world, right?

15:09 Right. And then, yeah, you know, a testament to Heroku is how long it has worked without a lot of attention from them. And so they lost a lot of trust in the community, not just from doing away with their free tier. It's really hard to maintain a free tier. It's just puts a big target on the platform for abuse.

15:29 But it's about some reliability issues and communication issues around issues on the platform.

15:37 So there was an exodus from Heroku for a while.

15:40 And I was working on this automation problem for a while.

15:44 And I had that shower thought of like, okay, all that work that I'm doing through the Buildpack on Heroku's end could be done through a management command with NJNGO.

15:52 You can do all the changes to your project on your computer if you know what to do.

15:58 So internally, Django simple deploy is just a single management command, that deploy command.

16:04 And when you run that command, based on the plugin that you have installed, it knows which platform you're targeting.

16:10 And then basically, I've just spent hours pouring over the documentation for a few different platforms.

16:16 And so we pick up the platform that you're trying to deploy to, make all the changes necessary for a basic initial deployment to that platform.

16:24 And then there's two ways you can push your project.

16:26 The fully automated mode puts all those changes into a single commit, runs that platform's deploy command, and pops up your project in a new window.

16:35 Yeah, and the transport mechanism is Git, right?

16:41 Good question.

16:43 Not necessarily.

16:44 The transport mechanism is whatever that platform uses.

16:49 So for Fly, Django simple deploy makes the configuration changes for your project.

16:56 and then it calls the fly deploy command.

16:59 So I don't even have to know what fly deploy is using behind the scenes.

17:04 You have the CLI installed, simple deploy calls that deploy command.

17:09 For Heroku, when it gets to that deployment stage, in the automated mode, Jingo simple deploy runs git push Heroku main.

17:17 And so it's one of the nice things about this project, and part of the reason it has taken so long to get to 1.0 is quite adaptable to different approaches.

17:27 Yeah, that's pretty wild because you're just automating the CLI for that platform, right?

17:32 Right.

17:34 And Chris is commenting, there should be one obvious way to deploy your Django project to a service.

17:40 Yeah, he's right.

17:41 The nice thing about this is Django Simple Deploy becomes this abstraction layer between your work and the platform.

17:49 So it creates a nice, consistent interface for deploying to a wide range of platforms.

17:54 And when a platform inevitably changes their deployment process or configuration requirements, as long as one person makes that update to the Django SEP deploy plugin, everybody else gets to just keep using that consistent interface for how you do your initial deployment,

18:10 which is really, really nice.

18:12 Yeah, it is really nice.

18:14 You don't have to worry about all the details and also the ability to move without losing all of your expertise.

18:23 This portion of Talk Python to Me is brought to you by Worth Recruiting.

18:27 Are you tired of applying for jobs and never hearing back?

18:30 Have you been getting the runaround or having trouble making it past the AI resume screeners that act as the new gatekeepers for your next level Python job?

18:39 You should reach out to Worth Recruiting.

18:41 Worth Recruiting specializes in placing senior level Python developers and data scientists.

18:46 They work directly with hiring managers at startups, helping them grow their software engineering and data science teams.

18:53 With Worth, it's not just connecting you with the company.

18:56 It will guide you through the interview process and help make sure you're ready with their detailed preparation approach.

19:01 They can even coach you on salary negotiations and other important decision-making processes.

19:07 So if you're ready to see what new opportunities are out there for you, reach out to Worth Recruiting.

19:12 Let them be your partner and specialist to find the right Python developer or data scientist position for you.

19:18 Fill out their short contact form at talkpython.fm/worth.

19:23 It only takes a minute.

19:24 That's talkpython.fm/worth.

19:27 The link is in your podcast player's show notes.

19:30 Thank you to Worth Recruiting for supporting the show.

19:33 This is where it gets really fun to talk about this project because, you know, people think when people first hear about this project, they think it's just for beginners.

19:42 It's just for people who already know deployment.

19:46 But where is I going with that?

19:48 Oh, so thinking about writers, authors, myself first, but content creators, tutorial writers, presenters.

19:56 If you're wanting to include deployment as part of your process that you're teaching people, then a lot of people have chosen not to do that because as soon as you include deployment, you're now tied to that platform's stability.

20:13 As soon as they change their process, you've got to update your materials or it's broken.

20:17 and that's not appealing.

20:19 So for somebody who uses Django Simply Deploy in their tutorial, again, as long as one of us keeps the plugin updated to work on that platform, your learning resources stays the same.

20:31 That is really nice.

20:33 And whether you're teaching a college class or you're just writing something for your blog, it is really nice.

20:38 Yeah, and I think about the Django Girls workshops.

20:41 And so part of that, the goal of that conclusion of deploying your project is just to see a live.

20:47 Like, why are we doing this if we can't see a line?

20:49 You don't necessarily want to spend a whole bunch of time focused on deployment.

20:52 And so if you can kind of really crunch that into like, okay, we're going to run these commands.

20:57 We have a working deployment.

20:58 It's not about hiding deployment from people.

21:01 Because one of the coolest parts of this project is that it contains all those configuration changes in a single Git commit.

21:07 Is there a verbose mode where you get to show all the little steps it's doing and stuff?

21:11 Yeah, it is verbose by default.

21:15 So you get to basically it streams and dumps all the platform's output as it's deploying, which is kind of important because if you don't do that, you just see this blank screen for two, three, seven

21:26 minutes.

21:27 Yeah, it's just sitting there spinning.

21:28 Yeah.

21:31 But to slow this down, take a step back for a minute.

21:33 I've mentioned the automated mode where you include this stash-tash automate all.

21:37 That's easiest to talk about because it boils down this deployment process to three steps.

21:43 I don't actually recommend that for most people because it makes a Git commit for you, runs a deploy command, and maybe you want to have a little more control about that process.

21:53 There's a configuration-only mode, which is every bit as helpful, but it lets you kind of take a little more control.

22:01 And so what you do for most platforms, you have to create a resource, basically a deployed project, an empty project on that platform, and then you run deploy.

22:11 And Django Simple Deploy recognizes the resource you just created on that platform, configures your project, and then it stops.

22:21 And so you now have a configured project, and you can run git diff, and you get to see all the configuration

22:27 changes that were made on your behalf.

22:30 So you don't have to just trust it.

22:32 Yeah, yeah.

22:33 So when I shared this on the Django Discord yesterday, somebody was excited about it, and then I said something about that commit that was made.

22:40 And they said, oh, it makes commits for you.

22:41 I'm not sure I want to use that.

22:43 Is it okay?

22:43 You can do the longer mode where you get to review that.

22:48 And then you can see all the files that were created for that platform.

22:52 You can see the settings changes that were made to make your project work.

22:56 And then you can choose to make that commit.

22:58 You can choose to push it or revert it.

23:01 Even if you use the automated mode, it's still all the configuration is one commit.

23:05 And so you can just revert that commit and you're right back to your project.

23:09 I'll throw one more piece in there right away.

23:10 one of the priorities of the project is that it does not change the local behavior of your project.

23:16 And so when I run the test suite, it tests that all the configuration changes are correct for the target platform, but it also runs run server again locally and makes sure that we haven't impacted the local running of your project.

23:32 Oh, interesting. It'll run it to make sure it basically starts. Nice.

23:36 Yeah, you know, this automated versus config sort of deal, it reminds me a little bit of how maybe DBAs feel about ORMs.

23:45 You know, like they're like, oh, you can't just let it run arbitrary queries against my database.

23:50 Like, how do we know it's doing the right thing?

23:52 I'm sure you feel that way for a while.

23:55 But eventually, all right, we've reviewed them.

23:58 They're fine, right?

23:59 So maybe this config thing you do a couple of times, you're like, yeah, that's

24:03 what I would do anyway.

24:04 Just run it, right?

24:05 Because what else are you going to do?

24:07 You're probably going to create a script that does the things you expect it to do anyway for yourself as a bash script or something, right?

24:13 And so might as well be a Python script.

24:15 Yeah.

24:15 I mean, it's funny hearing you talk about this because this project started as a pile of bash scripts.

24:20 And so, yeah.

24:22 I got a pile of bash scripts on my server.

24:24 They do things.

24:25 Yeah.

24:25 One of the pre-1.0 tasks was a long issue that was just about converting all these shell scripts to Python.

24:33 And mostly that was about creating, making this work cross-platform.

24:37 So it's basically taken me like four years to get this to 1.0.

24:40 And it's that 80-20 principle turned into like 595 principle.

24:49 So another reason, so a good thing to kind of move into, another reason it took so long to get to 1.0 was originally this was all one library.

24:58 So it was just Django simple deploy.

25:00 And originally you would run managed.py deploy --platform by.io.

25:06 And so the entire project contained all the code for all the different platforms.

25:12 And that felt better than the original project just targeting Heroku because you have choice.

25:17 But it felt like a nightmare for maintenance.

25:19 Anytime any project changes, it's going to need an update and it's just going to grow exponentially.

25:27 Yeah, it becomes combinatorially complex in terms of dependencies, which

25:31 is not a good order of magnitude.

25:35 It's not good.

25:36 Yeah.

25:37 So I had some people kind of very kindheartedly nudging me towards just doing a 1.0 release to get over that fear of a 1.0 release.

25:46 But it was always about having – I had a vision that the mature version of this project should be plug-in based.

25:54 So the core project, Django Simple Deploy, is small.

25:58 It's platform agnostic.

25:59 All it does is inspect your project, inspect your system, and then hand out the rest of the work to a plugin.

26:05 And so currently there's a plugin targeting apply.io, plugin for platform.sh, platform for Heroku.

26:12 I have a proof of concept plugin for CodeRed, and I'm working on a proof of concept for DigitalOcean.

26:20 Yeah, so many cool things to talk about with this.

26:23 Yeah, yeah.

26:24 Before we go, I do want to maybe just go through some of these hosts and let you talk about maybe why they're included.

26:32 Which ones are, there's stuff out there, obviously, that's not included.

26:35 Why is it not included?

26:37 So Heroku, obvious, especially when you started, when they had the free tier and stuff like that.

26:43 I kind of want to get them, I know people are angry at them.

26:45 I understand that.

26:46 But also, I kind of want to give them a little bit of a pass, like offering free hosting to the world where people just put up malware and other badness and use the trust of your domain to sort of leverage that, it's challenging.

27:00 And I don't know.

27:01 I understand people are frustrated with them, but that's tough.

27:05 So Heroku, platform as a service, you push your stuff up, you say, here's my code, here's how you start it, run it for me, please.

27:12 There's not a lot of Linux.

27:13 There's not a lot of shell, right?

27:15 They kind of take care of that for you, yes?

27:17 They do.

27:18 And there's still, yeah.

27:20 I've had conversations with people who, with founders of a number of these platforms over the years, because it's always interesting to talk about this.

27:28 And platforms would love to see an easier way to deploy Jango projects.

27:32 One of those founders said something really insightful at one point, and I appreciated the honesty, is that we're all trying to be second best for beginners.

27:39 Because if you draw that crowd, you're drawing more support than benefit in the short term.

27:45 And so, yeah, for a long time, Foroku paid that cost.

27:49 they were willing to be the go-to for everybody.

27:51 So there's still a lot of projects running long-term on Heroku.

27:55 I know some important Python ones that are there.

27:57 Yeah.

27:57 Yeah.

27:58 Okay.

27:58 And then we got fly.io and platform.sh.

28:03 What's the story of these?

28:05 Honestly, I haven't used either of them.

28:06 I've heard of them.

28:07 I haven't used them.

28:08 So the selling point for fly.io is they're an edge-based platform.

28:14 And so they take your, if I'm saying this right, They take your project and they push your application code to a bunch of different nodes.

28:25 And so your code is...

28:26 Kind of like a CDN, right?

28:28 Yeah, CDN for your application code.

28:30 And so your code is right close to your end users.

28:33 And so I don't need it, but they've built it well enough that I can just push a project there and it works.

28:39 And I'm a big fan of, you know, if your project does what you need it to, is it a good question?

28:43 Is it good enough?

28:43 And so it's been good enough for me for a lot.

28:46 And I know it's targeting some more complex use cases.

28:50 I have so many questions.

28:52 It's so interesting.

28:53 Well, the first thing that comes to mind is what about databases, right?

28:57 If your app is running, yeah, you've got to have some way to correlate and centralize and make the currency of the database and all that work, yeah.

29:05 They've had some fantastic people working for them, and they have some fantastic blog posts.

29:09 So they've done really interesting cutting-edge work around distributed SQLite.

29:16 databases. And so, yeah, they are quite familiar with that question and they

29:20 have answered it well and they are answering it well.

29:24 If you can answer that question well, then you can get some stuff that flies, you know? I mean, I guess, hence the name. I didn't even do that on purpose.

29:32 I've been using bunny.net, which is a really nice CDN platform, but just for static content, not for application code that talks to the database.

29:46 And I understand how you would replicate the database, but the challenge is if you have chatty rights, all of a sudden you're pushing your database away from your app, which has its own sort of latency and stuff.

30:00 But what an interesting idea.

30:01 Okay, and Platform.sh?

30:03 Platform.sh started as a PHP, I believe, started as a PHP-only platform, but then expanded to support other languages.

30:12 And so they have been sponsors of DjangoCon for a long time.

30:17 And I really enjoy working with their platform.

30:21 Deployment is pretty straightforward.

30:23 And then, you know, one of the things I look for in these platform as a service is, so once you push it, I'm very happy to have them managing the DevOps work.

30:32 I also want to be able to like get into the server and run commands and see what's going on.

30:36 And so they make it easy to do that.

30:38 Yeah, if things are not starting or they're crashing or something, sometimes just go, just 30 seconds at a glance at the log file or something.

30:46 Oh, yeah, or maybe why is that file?

30:49 That file is actually missing.

30:50 Oh, that's weird.

30:51 Let me see if I can just get that.

30:52 And then you're back to like, okay, back to platform as a service, and you're good, you know?

30:55 Yeah, and that's, you know, platform as a service certainly works for people who know nothing about, you know, hopping into a server and running commands.

31:03 But they're also for, like, people who know how to do that and don't want to do that.

31:05 And so a service like platform.sh that makes it easy to do both is also, I see it as an onboarding for people who have something worth deploying, don't know DevOps yet, but letting them hop in and start to do that is pretty interesting.

31:21 Yeah, it's very interesting.

31:22 Okay, so I can run Python manage.py deploy --automate all, and that will take my app and put it into whatever destination you pick, right, of those three.

31:32 For these platforms as a service, a lot of times you have to have a database.

31:36 Sometimes that's a managed Postgres or whatever you might have data that has to import initially.

31:44 You know, you're like, well, here's all the counties in the United States and we have to query them for stuff.

31:48 So we preload that at first.

31:50 How does all that get connected and happen, right?

31:53 If I had like no database and I just have a pure Django app that just runs Python, easy.

31:58 I see how this works, but there's settings and stuff here that vary by production versus dev.

32:04 Yeah, fun question.

32:06 So I've done most of the development work on Django Simple Deploy.

32:10 I've actually run sprints at several PyCons and several Django Cons.

32:14 And this project has brought together like 8 to 15 people at each sprint.

32:19 It draws some interest.

32:20 And so the project would not be where it is without those contributions.

32:24 A lot of those people have made some contributions and not done a whole lot outside of the conferences, but that whole group of people has been available to just bounce ideas off of.

32:34 And so a lot of the pre-1.0 work was also like me getting rid of all the baggage that just kind of only made sense to me, or you really need to have years of contact with the project to make sense of it.

32:44 And so now it's at a place where the structure is pretty consistent.

32:49 And so one of the things I'm looking forward to is somebody else who knows Fly.io managing the Fly.io plugin more than me.

32:57 And so they don't need to go deal with Chango Simple Deploy.

33:01 They can focus on the parts of the script that do the things you were just talking about.

33:06 So all the configuration has been largely my choice.

33:09 You know, okay, on Heroku, we'll choose this Postgres instance because it's cheaper, because it lets people get started.

33:17 It's possible for somebody to either take the Heroku plugin and add a few more CLI flags to give you a bit more choice, or just write your own Heroku plugin.

33:28 And so right now the plugin for Heroku is dsd-heroku.

33:33 Somebody else could do like DSD Heroku-large, and it's meant for scaling large or deploying large-scale Heroku projects.

33:43 And so that's not a, I don't want to do that work.

33:45 They should write their own.

33:46 That's if you have a use case that you know well, you want to automate.

33:51 Simple Deploy just becomes this, again, abstraction layer for, you know, you have a consistent interface for running that deployment from within Django.

34:00 Yeah, there's a nice plugin model, which really opens things up.

34:04 I suppose the short answer is probably, well, the Django ORM will create the database structure for you if you could just tell it where the database is, right?

34:14 Right.

34:15 And I know certain apps I've built, if they have data that has to be preloaded, I'll just have a little check like, hey, has this table got any data in it?

34:24 If not, run the load up the database the first time.

34:27 Otherwise, assume it's all good and keep going.

34:30 that pretty much handles it?

34:31 I think, you know, it's kind of two directions I'll take this.

34:35 You know, a short list of the projects I've done over the years, they tend to be smaller, but they tend to be impactful.

34:40 So one project, automated report cards for students.

34:45 I used to work with struggling students, students who were plenty smart, but life had happened and they had gotten off track with school.

34:52 And so they just had holes in their, in their graduation requirements.

34:58 And so those students wanted to graduate, but they didn't know where to focus their efforts.

35:02 And so looking at a transcript was really hard because it's just a bunch of letters and numbers.

35:08 So I wrote a program that automated a generation of visual transcripts.

35:13 So I'd read their text-based transcript and then give them basically a chart, a bunch of gauges.

35:17 You just look at it in 30 seconds, know which classes you needed to focus on.

35:22 And it also went from deficiencies to strengths.

35:25 So traditionally, we talked to students who are struggling and saying, you need to do this, you need to do that.

35:30 You could see where they needed to do their work, but you could also see where they had been shining.

35:34 You could see where the strengths were.

35:36 And so I wrote a project.

35:38 I worked with whale researchers.

35:39 And people don't know this.

35:41 Sperm whales have learned to pick the fish off of – I'll take a step back.

35:47 People catch halibut, fish for halibut by putting literally miles long cables on the ocean floor or lines with a hook every six to 10 feet.

35:57 And so you put a thousand hooks on the ocean floor, leave it overnight or pull it.

36:01 And that's how you catch halibut.

36:04 And sperm whales have learned to listen for the sound of the transmission changes when somebody puts their boat into gear to pull those hooks.

36:13 They swim towards that sound and they just pick the fish off those lines.

36:16 Wow.

36:17 And so these researchers were starting to put transponders on boats that would allow anybody who saw a sperm whale to report that.

36:26 And then you could kind of time your fishing sets to be away from the sperm whales.

36:31 And so I wrote a project that just like these researchers didn't know how to get their data from one place to another.

36:36 And so I just wrote a small Django project that listened for that data and gave them a visible place where they could go to it and share it.

36:45 And one other, oh, I lived in Southeast Alaska, and we were having increasing landslides, more frequent landslides, and more impactful.

36:54 And so I wrote a small project that examines real-time stream gauge data and turns that into a measure of landslide risk.

37:03 And they gave a talk about that last year at PyCon.

37:06 All those projects are small.

37:07 They're never going to scale to millions of users.

37:10 They all need a database.

37:11 And so they all fit this model of something like I personally would build.

37:15 And if I didn't know deployment, those would not have ended up being useful.

37:18 And so this tool takes all those people out there right now who are getting the skills to build something that works locally.

37:24 And they don't have to go through that three weeks to three months of learning how to deploy things.

37:30 So I appreciate you bringing up the questions of what happens with these larger scale projects.

37:36 But there's also a whole class before you even get there of projects that would make the world better if they could be easily deployed.

37:43 Such a challenge because if you go down the, there's so many paths that people get led down that are not good paths.

37:50 You know, it's sort of the architectural equivalent.

37:52 I guess even just the DevOps equivalent of you're not Microsoft, you're not Google, you're not Netflix.

37:59 You probably don't need the chaos monkey running around your whale research project.

38:03 Right, right.

38:04 But people read that and they're like, well, I saw a really awesome conference talk and people loved it about how they had like geo-replication of their database and stuff.

38:11 You're like, yes.

38:12 Interesting.

38:13 not for you.

38:14 So the other direction that's interesting to finish out this discussion, so I'm targeting a VPS right now.

38:20 I have deployed a Django project to DigitalOcean just on the bare VPS.

38:25 For people less familiar with that virtual private server, it's basically a brand new virtual Linux machine that you can push your project to.

38:33 And so this is more complicated because rather than just like making a few configuration changes to your project and then running a platform's deploy command, you have to do that whole update the server, install Django, set up a Git push if you want to do that approach, make the right port changes and whatnot, expose that.

38:54 So it's more work for me to get that proof of concept done.

38:57 But once it's done, the work I'm doing to write a plugin for DigitalOcean would work just as well for Hetzner, just as well for Linode.

39:05 And then it opens up to all the different approaches that people take to deployment.

39:11 One of the interesting questions about Django Simple Deploy is what are the boundaries?

39:14 So what is simple?

39:16 And I don't know the answer to that yet.

39:19 It shouldn't become tube loaded.

39:21 It shouldn't re-implement the entire CLI for a platform.

39:26 But the bounds are pretty large.

39:29 So you could have a DigitalOcean that targets NGINX Benicorn.

39:36 You could have one that targets using the Doku approach.

39:40 You could have one that targets external databases.

39:43 There's really, it's a pretty open platform for automating deployment processes.

39:51 Yeah, absolutely.

39:52 Lots of people.

39:53 I mean, once you knock out one of those virtual servers, it's really, really close to seeing, well, anything that can run a Linux VM pretty much can do it.

40:02 And you were talking about Nginx.

40:03 You know, you might, I don't know, have you considered Caddy?

40:06 CaddyServer.com?

40:07 As I was saying Nginx, I was like, oh, wait, there's another one that I should be saying.

40:11 Well, I use Nginx for all of my stuff because it's gotten over the years, gotten more and more complicated.

40:18 However, you've got to run, you've got to independently manage Let's Encrypt, and there's this sort of scaling up process.

40:27 First, you've got to put the non-encrypted version up, so that cert bot and all the Let's Encrypt stuff can find it.

40:34 Then you create the SSL certificate.

40:36 Then you change the configuration again, because it won't run saying it's SSL until it actually has this, like there's this scaffolding step that's always messy.

40:45 And if I think like easy getting started for people, Caddy, which manages the security and all that and has a real simple configuration language, it seems like it might be a good option.

40:56 And it has 62,000 GitHub stars.

40:59 It's, I think a person or two uses it, you know?

41:02 That's kind of neat.

41:03 Yeah, last week, before I started the DigitalOcean plugin, I asked on Mastodon how people are deploying to VPS these days.

41:13 And Cady was one of the things that came up.

41:14 It was super interesting to see the range of approaches that people are using.

41:18 So, you know, as I go through this, I'm kind of asking the question for basic initial deployment for somebody new to this platform, what are some sane choices?

41:28 So Cady or Nginx, Postgres or SQLite.

41:32 So I'll make those choices.

41:34 And one of the open questions that I don't have clear answers to is, you know, where are the boundaries around those plugins?

41:41 So I'll certainly implement a --DB flag that lets you choose like Postgres or SQLite.

41:48 But I don't want to do a flag for like --approach, daku, whatnot.

41:53 At some point, it makes more sense to have other people write other plugins and just foster that plugin ecosystem.

42:00 so another consideration and kim out in the audience was hinting at this before and it's certainly the way that i'm doing things these days is docker so let me just give you an example like yeah you can go all in and you could run on like the doc like eks and all these kinds of things you can go way way deep on it or you can just do stuff as simple as like hey i want i want the front end web server to be caddy i could install caddy on the server using apt or whatever but then you those kind of update more slowly, you have less control over it. You could just as equally well run a catty Docker image on that machine and have basically a zero touch experience on the server itself, other than just having a Docker thing there, right? And you can do whatever you want to that Docker image. You could even have a catty Django simple deployed one based off their original one or, you know, things like that where you've got it exactly configured. What's the story with Docker? And how have you been thinking about that? Because once you start to go to virtual or you start to get into some of these processes and some of these ideas?

43:03 Yeah, great question.

43:04 And it certainly has come up multiple times.

43:06 My main experience with Docker is working with Fly because Fly is a Docker-based approach.

43:15 I have not written my own Docker files, but I have learned about them.

43:19 And so short answer, Docker is an approach to deployment, and there's nothing stopping anybody from writing a plugin that has a Docker-based approach.

43:28 this kind of gets back to the question of like what's next yeah I'm going to finish the plugin for a proof of concept plugin for DigitalOcean I'll take it to the 1.0 version of that approach so people can reliably deploy to DigitalOcean with a particular articulated approach it'll probably be catty choice of SQLite or Progres Whereas, and then I'm probably like, my best approach is probably to back off of writing more plugins because I could spend the next few years just enjoyably exploring all these platforms and approaches.

44:09 But I really should back off, just continue to let people know the project exists, make sure these set of plugins that I've started continue to work, and then just continue to tighten up the internals so that it's easier and easier for other people to write plugins.

44:24 I can already tell from the way you're talking, like you could, I have a DSD plugin template repository.

44:31 It's in the Django Simple Deploy organization.

44:34 And so if you want to write a plugin, you don't start from scratch.

44:37 You download that repository for the DSD plugin template.

44:43 You don't clone it because there's no upstream for it.

44:46 Download it, install it alongside Simple Deploy in development mode, and you can run tests right away.

44:52 So you run an integration test and it just verifies it.

44:55 It gives you a couple of questions.

44:56 What's the name of your platform?

44:57 What's the command you want people to use?

45:00 Do you support automate all?

45:02 And then it writes a new plugin for you with all the plumbing there.

45:08 You run tests, verify that it works, and then you start writing your platform-specific code.

45:13 And so there's a bit of a learning curve for developers where you got to learn, like, what...

45:17 You know, Django's node deploy has a module called plugin utils.

45:22 And so that's how you write output in a way that's consistent with the rest of the project, feeds into its logging.

45:27 There's a run quick command for small changes you're making to the project.

45:32 There's a run slow command for things like deploy to make sure we're capturing output, streaming it, whatnot.

45:37 So you learn those utilities, but you pretty quickly get to a place where you're just focusing on your expertise or opinion about how to approach deployment for a particular platform.

45:47 Yeah. Okay. I'm sure there's a ton out there.

45:51 People can be like, well, what about my platform, right?

45:53 You know, I'm sure there's some folks who are experts at wherever they're deploying their code that could maybe come and create a plugin, right?

46:00 Absolutely.

46:00 And somebody tried to write in support for Google.

46:08 What was it?

46:09 Google Cloud?

46:10 Yeah, Google.

46:11 Yeah, GCP.

46:12 Google Cloud.

46:13 A couple years ago.

46:15 But that was back when there was no plugin system.

46:17 And so it got bogged down in just like all the back and forth between core and that platform.

46:24 These days, that person could just download that plugin template and start focusing on the platform.

46:30 Yeah, awesome.

46:31 I'm sure that there's people out there thinking, hey, we could do this for Azure.

46:34 Hey, we could do this for AWS as well, right?

46:36 You know, I'm really blown away about how many people choose the hyperscale clouds, given how complicated and expensive they are.

46:45 There was some stat in one of the recent surveys.

46:48 I don't know if it was the ESF chip brains one or just a more general developer one.

46:54 Anyway, it doesn't matter.

46:54 One of the bigger surveys, 75, 78% of the people used either Azure, AWS, or GCP.

47:02 And I look at those, I'm like, geez, I don't think 75% of the apps out there need the stuff that those are offering.

47:09 And it's so, so much more expensive.

47:11 I don't think people fully understand how much more expensive it is to get like a VM on one versus the other.

47:18 I did some, I think, you know, it always depends on which one you pick or something.

47:23 But for a $20 Hetzner server, it's, I think, $60 on DigitalOcean, $200 something dollars on AWS, and I think pushing up towards $300 for Azure.

47:36 And what you get when you go up to these prices, you don't get a better experience.

47:40 you get a worse one because all the complexity, all the stuff that you got to deal with, it's not like, well, just here's your server, go with it.

47:46 Like, oh, no, no.

47:46 There's all these other things you got to bring in.

47:48 And it just, it super surprises me that that's the case.

47:52 And so, yeah, I don't know.

47:54 Yeah.

47:54 I built working support for Azure early on.

47:58 My goal, you know, I worked for Vork originally, then I made it work for one other platform, which was Fly.

48:03 Like, okay, cool.

48:04 This isn't tied to one platform.

48:06 And then the rule of three, I did a platform in a stage.

48:07 Like, okay, now I've gotten all the generalities out.

48:11 moving over to VPS as opposed to platform as a service opens up a few new things, but I can put those in internally without making breaking changes in the project.

48:22 Yeah. And Azure does have a platform as a service offering, for example. I'm not, I think, I'm sure AWS does as well, although I haven't tried to try to use it. Yeah. So, I mean, they're analogies. I don't know.

48:34 Well, I also focused on Heroku.

48:37 One of the things for Heroku is it's one of the fastest deployments I've used.

48:41 It kind of got a dialed.

48:44 Azure was taking like 10 or 15 minutes, so it was hard to do development work against that.

48:49 Kim posted this interesting question or comment.

48:52 The various deployment mechanisms presumably all need credentials.

48:55 Are these provided as NV variables?

48:57 Many beginners perhaps don't know what has to do with these.

49:00 This project may help.

49:01 I agree completely.

49:03 So this project is like I'm approaching VPS credentials around SSH as ENV variables.

49:10 That's what I've used in the past.

49:12 ENV variables being files that have basically key values that you don't put into Git, but you create on the platform, right?

49:19 Something like that?

49:20 Yeah.

49:20 And so the quick start guide will say like export these two environment variables, you know, your IP address and your host password, maybe a username if you've already created a non-root user.

49:31 But it goes through and it basically, if you don't give it a username, it tries the default Django user username and it goes through root and whatnot.

49:41 It's a little humbling to make these plugins because it shows you exactly where my current knowledge is at.

49:47 But it's also a starting place that works.

49:49 And so if somebody looks at this and says like, hey, you really shouldn't be using the NB variables.

49:52 Here's the current best way to deal with credentials.

49:55 we can write that into the plugin and as kim is pointing out it steers all beginners all people from that point forward um into that better usage and it also comes back to that idea that this isn't just for beginners think about all the people out there who are using the inv variables because that's what they learned and maybe if there's something better and the latest version of the plugin steers them towards that as well i've often found there are things that are good for beginners that end up being really helpful for everybody else as well um and this project feels like one of those.

50:24 That's very cool. Certainly making your life easier. Everybody wants that, right? Yeah.

50:28 Automated a lot of things. Okay. Well, I mean, I'll throw one more thought out there. Like as you're working on the server, the virtual server side of things, I think there's a lot of opportunity to leverage Docker to say like, if you could build an image that is 90% the way there, you could just say, run this Docker image, run this Docker container based on this image.

50:48 And what, it doesn't even matter what server it's on. I think there's, I think there's some interesting stuff you could do with docker here but

50:53 oh absolutely yes i'll let you go down that path but i i certainly have enjoyed it um yeah so what's next what do you have to you this is by the way i don't know if we called it out that way this is kind of the 1.0 you mentioned it in passing but this is the 1.0 milestone sort of thing right

51:11 yeah the 1.0 for this is really about like people should be able to trust that it's reliable from this point forward it does work works on all three OSs for the officially supported plugins.

51:23 I'm going to try to keep a list of plugins that I'm aware of that are being worked on and sort out that whole, you know, how do you manage an ecosystem? But, you know, I've also thought of this as like a gift to the Django community.

51:36 I wanted to release 1.0 on Christmas. I couldn't quite get there.

51:41 You know, if you listen to Django chat, when the word deployment comes up, there's always this Corona.

51:46 of oh um and i've been there for 20 years excited as well over he loves it yes um

51:52 but so this problem has been in jango in the jango world for 20 years how do we deal with the fact that it's hard to deploy jango harder than php harder than some other things and i really think this project kind of answers that question or goes a long way towards entering it um and there's a there are people in the django community who have been kind of cheerleading this project for a while um because if they've seen it i've announced it in public i've kind of done the development in public and at django cons whatnot

52:22 yeah so awesome i'm gonna i'm gonna step back from creating more plugins i'm gonna continue to refine the internals and i'm gonna go back to my own like actual django projects you're

52:33 gonna use it rather than build it yes yes you know that's the way to do it you know Well, I think one of the bits of magic of Python and why it's so popular is it's very welcoming to beginners, right?

52:45 People coming from science, like we talked about, or other things, they kind of get sucked in and they're like, huh, it's nice here.

52:50 Maybe I'll stay.

52:51 And, you know, these kind of things sort of tell that same story for web developers, right?

52:57 There might be a point where people outgrow this or they don't, but they might.

53:01 But it might have gotten them that year's worth of experience running a server or running a platform as a service app and dealing with all of that so that they're then ready to take whatever next step that needs to be taken, if it needs to.

53:13 Yeah, it really smooths out that learning process because you just described it.

53:18 Python's welcoming people to learn Python.

53:20 They say, oh, I want a web front end for this.

53:23 Going back to my father not releasing his projects, he was a software developer in the 70s and 80s.

53:30 And so for him, deployment was, I need to make my project so good, it can be printed to like 10,000 physical copies.

53:39 So it's no fault to him for having those unreleased projects.

53:44 So the pathway these days is people learn Python, say, okay, I'm solving my problem with Python.

53:48 I want a web front end so other people can access it.

53:51 They learn Django because they already know Python.

53:53 That's all smooth.

53:55 Django is a bit hard, but you can learn it if you know Python.

53:58 And then they get to deployment and it's this entirely different class of things to learn.

54:03 And that's where that cliff comes in.

54:05 And so simple deploy tends to smooth out that.

54:09 It basically removes that cliff.

54:11 And so you go right from where you are.

54:13 I have a project working on my system.

54:15 Now it's working on a remote server.

54:17 I don't fully understand it, but it's much easier to poke around at the working deployment than poke around at something that you're trying to do that's broken and people end up giving up.

54:28 I'm excited about like, yeah, I'm excited about like opening that pathway for people.

54:32 Yeah, absolutely.

54:33 That's awesome.

54:33 Nice work.

54:34 And thanks for doing it.

54:35 There's already so much to learn to build a web app to even go from, I know Python to a web app because CSS databases, you know, HTML, JavaScript, there's already enough that you don't need to throw Linux and CDNs and all that at people at the same time, right?

54:52 Let them go across the chasm and they'll figure it out on the other side.

54:56 All right.

54:57 Well, thanks for this project.

54:58 Maybe final call to action.

55:00 People want to get started with it.

55:00 What do you tell them?

55:02 Go take a look at the docs.

55:03 There's friendly quick start docs, show you how it's used.

55:06 And there's pretty comprehensive contributing docs if you're curious to write a plugin or how about otherwise?

55:11 Yeah, I guess let's close it out with this.

55:13 If you got a platform out there, if you're somebody like fly.io, but a different, consider creating one of these plugins.

55:20 It blows my mind, Eric.

55:22 I don't know how you feel, but there'll be some major, major service.

55:25 And you'll go there and they're like, well, you can use our JavaScript API or you can just write it from scratch.

55:31 Like how much effort is it for one of these companies to spend a week, create a package for their thing and make it go?

55:37 And I think, you know, a sort of a similar call to action, like, hey, if you want to make it real easy for people to just switch to your platform, you know, consider following the steps that you talked about to build a plugin for this, right?

55:48 Yeah.

55:49 Yeah.

55:49 And for anybody getting, anybody interested in writing a plugin, feel free to reach out.

55:52 I'm happy to make sure that works first time people do it.

55:55 Yeah, absolutely.

55:56 All right.

55:57 Thanks for being here again.

55:58 Talk to you later.

55:58 Thank you, Michael.

55:59 Bye.

56:00 Bye.

56:01 This has been another episode of Talk Python to Me.

56:05 Thank you to our sponsors.

56:06 Be sure to check out what they're offering.

56:07 It really helps support the show.

56:10 This episode is sponsored by Worth Recruiting.

56:13 Worth Recruiting specializes in placing senior level Python developers and data scientists.

56:18 Let Worth help you find your next Python opportunity at talkpython.fm/worth.

56:23 Want to level up your Python?

56:25 We have one of the largest catalogs of Python video courses over at Talk Python.

56:29 Our content ranges from true beginners to deeply advanced topics like memory and async.

56:34 And best of all, there's not a subscription in sight.

56:37 Check it out for yourself at training.talkpython.fm.

56:40 Be sure to subscribe to the show, open your favorite podcast app, and search for Python.

56:44 We should be right at the top.

56:46 You can also find the iTunes feed at /itunes, the Google Play feed at /play, and the direct RSS feed at /rss on talkpython.fm.

56:55 We're live streaming most of our recordings these days.

56:58 If you want to be part of the show and have your comments featured on the air, be sure to subscribe to our YouTube channel at talkpython.fm/youtube.

57:06 This is your host, Michael Kennedy.

57:08 Thanks so much for listening.

57:09 I really appreciate it.

57:10 Now get out there and write some Python code.

Talk Python's Mastodon Michael Kennedy's Mastodon