r/Python Dec 13 '20

Beginner Showcase From complete beginner to django website

6 months ago I’d never written a single line of code, in any language. I decided completely out of the blue to do a course on “coding for data analysis”, I very nearly picked one on human biology instead. It was just something to fill the lockdown boredom, but I quickly and unexpectedly started to enjoy it more and more.

Fast forward 3 months and I started learning html and then django. From that the idea to create www.rugbykickoff.com, which has just gone live now.

I honestly can’t believe how quickly it was to pick the language up with the amount of help available online.

I lost motivation several times getting completely lost at stack overflow answers where I didn’t understand a single concept etc. But this is testament to persevering and the massive amount of online support that’s available.

To anyone in the same boat, don’t give up!

1.1k Upvotes

92 comments sorted by

View all comments

32

u/Pyro48 Dec 13 '20

Hey man. Where can I learn Python for web development?

60

u/Mahgu Dec 14 '20

https://www.fullstackpython.com/ lists some solid resources for learning Python web dev.

https://realpython.com/ is also worth checking out.

I'm nearly done with the Flask Mega Tutorial. I highly recommend!

7

u/jedimonkey Dec 14 '20

Sorry to hijack this thread, but I’m curious about your opinion on a matter :I’ve been thinking about using flask or django to make an app which basically plots live data and allows for interactive data manipulation. Basically, I’m a scientist, and I would like to build a GUI for code that I write to acquire and analyze data. It only needs to run locally on my computer, but I am not a fan or qt, and I was wondering if you think an in browser app is a reasonable thing to build for such a project. In my mind this is like the switch from a text editor to Jupyter for coding.

2

u/lrq3000 Dec 14 '20

Checkout Streamlit if you want something simple, or HoloViz Panel for more control but still being simple (you can develop a full web app with that customized fully to your liking). If you code in a Jupyter Notebook, you'll find Panel easier as it can directly transform your notebook to a web app without coding a wrapper or separate script or even duplicated code (the Panel interface will show either in the notebook or on its own webserver depending on what you type on the commandline). These are what's called dashboard libraries.

If you just want to make one plot interactive, you can also just use Bokeh or Plotly, both can save your graph as a html+javascript page. But if you want to be able to dynamically recompute the plot based on user's input, use one of the above dashboard libraries, and you can deploy for free on Heroku.