Category Archives: python

kääntää Deployed!

Edit: And of course, the obligatory Project Page entry here: http://www.pioverpi.net/projects/csc309-a3-kaantaa-translations/ Now that I’m done with exams I can start blogging and coding for fun again.  Freedom! My first item on the tasklist was to deploy my CSC309 Django app (aka kääntää) on Bluehost.  Google again was my friend, and I found a few resources [...]

Also posted in Django, Tech, UofT | Tagged , , , , | Leave a comment

Django Models and Templates

When doing web development, you tend to lose a lot of flexibility regardless of the framework that you’re working with. You end up doing things the “Django-way” or the “RoR-way”.  That became painfully clear to me this weekend while I was working on my CSC309 assignment. The Model Let’s say that you have a model [...]

Also posted in Django, Tech | Tagged , , , , , | Leave a comment

Organizing Django Tests into Folders

Update: Due to some strange Django error, Django will refuse to run your app’s tests if your application doesn’t have a models.py file. You’ll need to create an empty models.pyin your app’s folder if you don’t have one Django comes with a nice testing  rig that lets you individually test each app.  By using a [...]

Also posted in Django, Tech | Tagged , , , | 6 Comments

Creating Django Apps

I’ve been doing a bit of work with the Django framework lately, and because I’m a total noob at it, Derek has been nice enough to hold my hand throughout the dev process. Django relies on the MVC design pattern, so you’ll want to modularize your components by creating Django apps.  From the Django book: [...]

Also posted in Django, Tech | Tagged , , , | Leave a comment

Python Shell Commands, /bin/sh: Syntax error

This semester, Derek and I have been doing some work on Postgres’ buffer management system for my CSC443 Database Systems Technology course.  Derek, wrote a nice little Python script that parses various Postgres outputs and does a bit of math on it. However, when I tried to run his script on my machine, I got [...]

Also posted in Linux, Tech | Tagged , , , , , , , , | 1 Comment