Pages
Categories
Category Archives: python
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 django, model, python, regroup, template, template tags 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 [...]
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: [...]
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 [...]
kääntää Deployed!