Pages
Categories
Tag 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 [...]
Posted in Django, Tech, python Also tagged django, model, regroup, template, template tags Leave a comment
Unit Tests in Django
I’m going to talk a bit about some of the practices that I use for unit testing in Django. If you’re unfamiliar with the Django testing system, you can read up on it here: http://docs.djangoproject.com/en/dev/topics/testing/ In general, I organize my unit tests into folders (ref. Organizing Django Tests into Folders) so I can break them [...]
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: [...]
Selenium and Firefox
Derek and I have been working on a Django web app as a side project, and of course, we decided that we needed to do some testing on it. Derek at set up some basic Selenium tests, but I was having some difficulty running them with Firefox. The error message that I got said: Could [...]
kääntää Deployed!