r/learnpython • • Feb 20 '21

What are you having difficulty learning or are currently struggling to learn?

I'm curious what the community here has difficulty with when it comes to learning Python. Partly because I want to see if the more experienced community here (or myself) can help point you into the right direction. . . but also because I'm trying to come up with video tutorial ideas for future content and would love to hear from Python learners what would be most useful to dedicate our time on.

I'm looking forward to hearing what you guys have to say!

417 Upvotes

324 comments sorted by

View all comments

Show parent comments

2

u/shartfuggins Feb 21 '21 edited Feb 21 '21

Deployment is largely a language-independent task. There are some python specifics when it comes to deployment, but most (pretty much all) of it falls under broader principles that apply to any other language. You'll likely not find much good information under "deploying a python app" that you wouldn't find under "good general deployment guidelines", and the association with python is more of a misleading search term than anything.

There are some really good points in the 12 factor app (https://12factor.net/) that will help prepare for a solid deployment and move your code in the right direction. You can start there and do your own searches from those topics and you will find that all of it applies to Python.

There are some specific concerns such as version pinning, and maybe availability of runtimes that would have Python-specific approaches, but again apply to many other languages.

I guess my point is, if you're going much further beyond syntax, idioms, environment management.. you might as well try out a different language and pursue best practices for deployment there - you won't be missing anything.

EDIT: I want to make a distinction between "how to configure and serve an app" and "how to properly deploy and maintain an app". I read u/TheRealDangerPaws "moving from DEVELOPMENT to PRODUCTION", "checklists .. to prepare, secure, and look after.." very much as the latter. For the former, there is certainly a ton of Python-specifics such as WSGI and Nginx- or Apache- specific configurations, the use of Fabric, etc. that you will need to know. If you can grasp the idea that a web server has language-specific configurations, but regardless of how you configure it, at a certain level the web server is doing literally the same job line for line for any language and framework. So you can delve into that specific configuration or you can generalize, but IMO understanding the general principles is the real work.

1

u/Ran4 Feb 21 '21

12factor is one of the best deployment/web application development bibles out there.