Re: database schemas support for postgresql psycopg2

2009-05-29 Thread Jack Orenstein
On May 29, 2009, at 8:25 PM, david.schruth wrote: > > Hello, > > I'm trying to get this working for multiple (non public) schemas in > postgresql databases using the psycopg2 database driver. I'm using > the most current svn of django 1.01 (from today). > > ... > Does anybody have a solution

Serving static content

2009-03-30 Thread Jack Orenstein
mod_python? 3) Why exactly is the builtin django method insecure? Thanks for any help. Jack Orenstein --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

Re: Problem with Field errors

2009-03-29 Thread Jack Orenstein
On Mar 29, 2009, at 9:35 AM, Matthew Somerville wrote: > > Jack Orenstein wrote: >> On Mar 28, 2009, at 12:26 PM, Daniel Roseman wrote: >> >>> On Mar 28, 4:14 pm, Jack Orenstein <j...@geophile.com> wrote: >>>> My application needs to validate data fro

Re: Problem with Field errors

2009-03-28 Thread Jack Orenstein
On Mar 28, 2009, at 12:26 PM, Daniel Roseman wrote: > > On Mar 28, 4:14 pm, Jack Orenstein <j...@geophile.com> wrote: >> My application needs to validate data from a from beyond the >> validation of Fields done by django. So in my form handler, I check >> Form.is_v

Problem with Field errors

2009-03-28 Thread Jack Orenstein
the render_to_response call containing the form. I'm guessing that this has something to do with the fact that the form already passed the is_valid check. How can I force the form to become "invalid" again, once my own validation detects errors? Jack

Problem getting application to run with Apache2 and wsgi

2009-03-20 Thread Jack Orenstein
match any of these. What am I doing wrong? Jack Orenstein --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubsc

Re: Location of files that are part of my application

2009-03-03 Thread Jack Orenstein
ork whenever your app is propperly installed. > > On 3 Mar., 21:41, Jack Orenstein <j...@geophile.com> wrote: >> I have a small number of files that need to be accessible to my >> Django application. These are part of the application, and so should >> be treated as source code.

Location of files that are part of my application

2009-03-03 Thread Jack Orenstein
I have a small number of files that need to be accessible to my Django application. These are part of the application, and so should be treated as source code. The question is where to put them? Putting them under MEDIA_ROOT doesn't seem right. They go with the application so they should

Re: Customizing HTML

2009-02-26 Thread Jack Orenstein
On Feb 26, 2009, at 10:04 PM, Alex Gaynor wrote: > > > On Thu, Feb 26, 2009 at 9:56 PM, Jack Orenstein <j...@geophile.com> > wrote: > > > value="m" name="gender" /> male > value="f" name="gender" /> female >

Re: Customizing HTML

2009-02-26 Thread Jack Orenstein
On Feb 26, 2009, at 9:44 PM, Alex Gaynor wrote: > On Thu, Feb 26, 2009 at 9:42 PM, Jack Orenstein <j...@geophile.com> > wrote: > > Suggestion: Instead of hardwiring formatting into Django, allow > attributes to specify formatting. E.g., here is the minimal HTM

Customizing HTML

2009-02-26 Thread Jack Orenstein
RadioFieldRendered does, but I could also substitute my own. Jack Orenstein --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@google

Django database connections

2009-02-14 Thread Jack Orenstein
o a pool? Can the pool be configured, (e.g. to set the postgres search_path)? Sorry to ask such basic questions, but I've been unable to find this information documented. Jack Orenstein --~--~-~--~~~---~--~~ You received this message because you are

Adding fields to model objects that don't correspond to database state

2009-02-08 Thread Jack Orenstein
(models.Model) ... class Foo(FooBase) but couldn't get that to work. How can I add a field to the Foo class that doesn't come from the database? Jack Orenstein --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Integrating raw SQL and model objects

2009-02-03 Thread Jack Orenstein
On Feb 3, 2009, at 12:15 AM, Malcolm Tredinnick wrote: >> >> 1) How do I turn a row into a model object? There is some discussion >> of writing raw SQL in the docs (http://docs.djangoproject.com/en/dev/ >> topics/db/sql/#topics-db-sql), but I didn't see anything on turning >> the row into a

Integrating raw SQL and model objects

2009-02-02 Thread Jack Orenstein
of model objects difficult. I must be doing something wrong -- forcing creation of the related objects seems wasteful, especially as it could propagate, (if the referenced object has its own FKs). Jack Orenstein --~--~-~--~~~---~--~~ You received this message because