Categories
Technology

Running a bottle.py app on Dreamhost

I wrote the Stack Monthly site on the one file Bottle framework, since my needs were really bare bones. But when I tried to get it running on Dreamhost, I had to struggle quite a lot, because there was no documentation to show how to do it. Only past midnight, did it dawn on me that there is no documentation, because it is so darn simple! So as a note to self, and to save someone an hour or two, here’s how to run a Bottle app on Dreamhost.

Categories
Education Technology

Django Flowchart

Based on my current understanding of Django, this is how a user request is responded to. User requests a page Request reaches Request Middlewares, which could manipulate or answer the request The _URLConf_finds the related View using urls.py View Middlewares are called, which could manipulate or answer the request The view function is invoked The view could optionally access data through models

Categories
Education Technology

Week with python & Django

Spent the last week picking up Python and Django. Notes to self and anyone else who wants a quick start on Python/Django on Windows. Most Linux flavours already come with most tools needed for python development. Requirements: Installed ActivePython 2.6 Installed Komodo Edit Installed Python Win32 Extensions (not sure why, but was recommended in some blog post and the project itself does not say much of what it does. Stuff like this gives me the heebie-jeebies.