After Julian’s great article on deploying a Flask app to Heroku, let’s look at how we can deploy a Django app to PythonAnywhere (PA).
Author
Bob Belderbos
Latest articles
by
-
-
In this post I share my first steps exploring Django. I created PyPlanet Article Sharer Django App to make it easier for us to share new Planet Python feed articles. It loads in new articles and generates tweet links. It lets us mark each entry as Shared or Skipped. I am sure this will facilitate our Twitter activity and News Digests. This is our first project of our 100 days of Django and our very first Django app overall!
-
This week’s article is about packaging your Python code. Sounds daunting? Actually it is pretty simple.
-
We love Slack! But what if we can make it even cooler? Imagine: you are geeking out with your fellow developers on Slack and you want to give them credit. Or you can write “stupidsubject–” and it automagically shows “stupidsubject’s karma decreased to -2”. Enter Karma Bot. This is nothing new but building one myself was a great learning exercise and a fun tool we use on our Slack now.
-
“Is this Bob or Julian?!” … yeah tweeting from our shared @pybites Twitter account can be confusing! So I made a little script to parse the location of our tweets. Then I extended it to make it testable. I wrote a decorator to cache a couple of API outputs to be used with the unittest.mock patch decorator I learned about. A simple script turned into a good learning exercise.
-
Last week I did some html table parsing with BeautifulSoup and regex. It turns out there is an easier way to do this: Pandas.
-
OOP Beyond the Basics: Using Properties for Encapsulation, Computation and Refactoring
·
·
4 min readIn this article I share my learning of the property decorator coding a simple Account class. I think it’s an unmissable tool in your (Python) OOP toolkit.
-
PyCon 2017 was such a great conference, I made so many good connections, got to see many good things the community is working on. It was very inspiring. In this article a digest.
-
In this article I teach you how to get started with Flask-SQLAlchemy. I will set up a model, create the DB, retrieve birthdays from FB and import them into the DB. Lastly I will query the birthdays by date range.
-
In this article I show you how to monitor Twitter and post alerts to a Slack channel. We built a nice tool to monitor whenever our domain gets mentioned on Twitter. The slacker and twython modules made this pretty easy. We also use configparser and logging.