11.18.2011

Decorating every view at the url.py level

I think of authentication and authorization usually in entire sections of a site/url tree. So it always annoyed me that there was no mechanism in django to decorate entire sections of a site at the urls.py level.

So, I came up with the following code that does just that.

5.18.2011

Ext4 MVC example reader.read is not a function

in your store
Ext.define('ID.store.Users', {
extend: 'Ext.data.Store',
model: 'User',

fully qualify the model

Ext.define('ID.store.Users', {
extend: 'Ext.data.Store',
model: 'ID.model.User',

[ERROR] Ext is not defined, please verify that the library is loaded properly on the application's page

I've started playing in earnest with Ext4 and I'm going to list out errors that I hit and fix as I hit them.

When running the sencha command in Ubuntu Linux (from the Deployment section. 3 of the getting started guide)

> sencha create jsb -a index.html -p app.jsb3
[ERROR] Ext is not defined, please verify that the library is loaded properly on the application's page
undefined:0 ReferenceError: Can't find variable: Ext

use fully qualified paths

> sencha create jsb -a /home/stephen/repo/ext-id/index_dev.html -p /home/stephen/repo/ext-id/app2.jsb3
file:///home/stephen/repo/ext-id/app/controller/Users.js?_dc=1305753075380:40 The panel was rendered
file:///home/stephen/repo/ext-id/app.js:13 Launch

cheers,
Stephen

4.21.2011

Vim for Django... a hell of a good start

http://agiliq.com/blog/2010/11/seven-reasons-why-you-should-switch-to-vim-for-dja/