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
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
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
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
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
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
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
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