My First Databound Python/Django Powered Webapp

Like a boss

When I first decided to start coding back in January, my initial aim was to have a databound webapp out by June this year. Given that most consumer facing applications follow the CRUD design template, I felt the databound aspect of the application was integral to my learning. My previous apps to date consisted mostly of utilizing API calls to present data so I needed to up my game a notch. Enter the Django  Well, Django’s admin system is so slick and easy to use that I feel a little cheesy saying this but I present to you my very first databound webapp. Made lovingly with Python/Django and hosted not so lovingly on EC2 (I had a bitch of a time setting it up) *drum roll*

The Singapore General Elections are round the corner so I made a little app that aggregates the schedules of each political party. Unfortunately, I’m running a little thin on data due to the lack of information available on their websites. They are also not responding to my emails (apart from The Reform Party). So version 2 is going to include a ‘news’ section which I will be scraping from the websites of each party. The elections will probably be over by the time I am done but whatever. Anyway, the concept of the website is not that important. What’s important is that I went from asking stupid questions like this and this to building a fully functional website by myself. I even re-skinned it! Something was a weird though. I was expecting to feel more pride and satisfaction given that I’ve achieved my goal with 2 months to space. While I am chuffed with my efforts, the overriding emotion that is one of: how can I make the app even cooler. I’ve caught the bug, building stuff is hella fun.

Lessons Learnt

  1. It doesn’t take 6 months to design a simple webapp. You can probably do it within a month easily if you work at it everyday.
  2. Hosting your site is a bitch. Learning about the different layers involved in making an application is also bitch. It’s quite daunting initially but get over the early hurdles and you’ll have a much better picture of what actually happens when someone clicks on the ‘next’ button or refreshes the page.
  3. I’m starting to understand why some techies hold non-techies in contempt. I showed the early versions of the app to some friends and they were *not impressed*. This was probably because the early versions of the site looked like shit. It’s hard to explain how satisfying it was when I figured out how to mod 30 lines of code to generate a HTML calendar that suited my needs. It’s a very good reminder to myself that users don’t care about the underlying tech. For a consumer app, the tech is just a tool to execute the idea and if they don’t get your app, you lose.
  4. You will pick up SQL/HTML/CSS along the way out of necessity. So when you say “I wanna learn to code!”, what you’re really doing is “I wanna learn to code and learn all the other stuff that makes my code come alive on the internet!”
What’s Next
At this stage, I am re-reading all the beginner books on Python. Due to the fact that I was actually doing very little Python, I felt I needed a re-fresher to remind myself of the basic stuff I didn’t use. I was breezing through the chapters, mentally ticking off the concepts in my mind “Yup know this, know that, understand how that works now”. Personally, I found it very encouraging that I had enough know-how to be able to skim the pages. In terms of my day-to-day at Insync (gdocs sync), I am currently working on a reporting system for the in-house analytics. I’m doing this Django (I’m a one trick pony) and using matplotlib to output the charts. Really psyched about being ‘good enough’ to be able to start contributing actively to the company. To infinity and beyond!

2 thoughts on “My First Databound Python/Django Powered Webapp

  1. Hi Nai..
    Great stuff man..Your every post is getting awesome and inspiring…..waiting for your next post ..cheers

  2. Hi Nai..
    Great stuffs…Your posts are getting awesome and inspiring .Always liked the “Lesson learnt ” and cartoons …waiting for your next post…cheers

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s