Re: mod_python and .pyc files

2005-11-07 Thread John Madson
And, of course, I figured it out as soon as I posted this. Apache's user didn't have permissions to write new .pyc files in my app's directory. Hope this helps someone else out! - John

mod_python and .pyc files

2005-11-07 Thread John Madson
I've been bashing my head against this problem for too long. My Apache2+mod_python setup simply will not reflect changes I've made to my Django app. I've set MaxRequestsPerChild 1 in my httpd.conf, explicitly defined my PythonPath to include my app's directory, and set PythonAutoReload On. I re

Django's overall security

2005-09-14 Thread John Madson
There's been almost no discussion of Django's approach to security, either on this list, the users list, Trac, or in the documentation. Web application security is under heavy scrutiny these days and there's nary a frameout out there that's taking it seriously. This seems like an opportunity for

Re: Authorisation

2005-09-14 Thread John Madson
I'll second storing permission information in the model; that's pretty clearly the best way to go about it. The less code in the views, the better. I'd also agree that the authorization system should be fairly generic, operating more at the database level than as a high-level roles-based abstrac

Re: Jumping views

2005-08-30 Thread John Madson
Tim, Thanks for your thoughts. I'd done something very similiar in my previous Rails implementation of this web application, and the approach works, well, as good as your lexer function. What I was really looking for was some guidance on the proper way to move from one Django view to another (e

Jumping views

2005-08-29 Thread John Madson
Well, since my last post [1] didn't get any response, let me try a simplified version... I have a form that looks like your typical "advanced search" page: a few fields in which the user can specify constraints that are ultimately going to be passed to a SELECT. I have a generic list view and as

Complex scenario, how to solve in Django?

2005-08-25 Thread John Madson
I'm rewriting a Rails application in Django, and thusfar it's been a pleasant process. However, I'm having a conceptual block on how to solve a problem "the Django way." My application has essentially three types of objects that users will view (lets call them Foo, Bar, and Baz), and each of tho

Accessing/creating addition fields on cross-reference tables?

2005-08-24 Thread John Madson
How do you add or access an additional field to the cross-reference table generated by a ManyToManyField? For example, if I have an xref table that looks like: `id` mediumint(9) unsigned NOT NULL auto_increment, `foo_id` int(11) NOT NULL default '0', `bar_id` int(11) NOT NULL default '0', `baz` v