So right up front let me just say that I love Django. This should come as no surprise to anyone who has been to my site. I think its a great framework and I really enjoy working with it. That being said all too often my clients look like a deer in...
I've seen a lot of people out there looking for a good IDE for doing Django work. Personally I'm a pydev guy. I have been using Eclipse for so long for everything else it's very natural to keep on that path. However there are definitely other alternatives...
Here is a little hack I made to the auth.login_required decorator that checks to see if the user account has the is_active flag set as well as being logged in. Nothing earth shattering here but I find it useful. If you look at the original login_required...
edit:
This example has since been added to the official Django Docs for pagination. Big thanks to Scot Hacker for taking the initiative to submit the doc patch and make this happen (IE I'm far to lazy to submit it on my own).
So I pulled the latest...
Here is a decorator that I came up with to augment the already available login_required and permission_required decorators. This one takes a group name and makes sure the logged in user is a part of it.
def group_required(group_name,...
Have you ever wondered why you can't have manage.py sqlall output your create table statements as InnoDB tables for mysql? Well I have. I always go in and update the statements by hand to add that after the fact. So I did a bit of pokeing around and...
Latest comments