Re: troubles with mod_python on Leopard

2008-09-11 Thread Jon Brisbin
I had quite a bit of trouble with Apache/mod_python on Leopard as well. I had to go back to using the default Apache 2 and stock python 2.5. I also had to rearrange things a bit in the path and ended up putting a symlink in /Library/Python/2.5/site-packges/django to ~/src/ django-trunk/djan

Re: Connecting to AS400

2008-09-11 Thread Jon Brisbin
I don't think Django can natively use unixODBC as it's ORM backend, unfortunately. It would be great if it did! You could Django without the ORM, of course. To connect from a Win server (why would want to do that? ;), you could use ClientAccess. To connect from Linux, you could use IBM's Li

Re: OT: Google Chrome

2008-09-02 Thread Jon Brisbin
I tried it on my Windows VM (still waiting on a Mac version) and it seemed quite fast. Since it's WebKit, I'm hoping it'll be as easy to develop for as Safari. I like that Gears is integrated, though I haven't yet used Gears in an app (it's on my list! :). I'm seriously considering using ge

Re: Is it possible to use Django + Postgresql on leopard?

2008-08-23 Thread Jon Brisbin
I do *all* my development on OS X Leopard! I just used the version in MacPorts. You have to compile psycopg2 against the same architecture as the server libraries (64 or 32-bit, depending on what you're on). I use a MacBook Pro and I had to add the 64-bit flags. I was going to post what I

Using ETags with Django

2008-08-19 Thread Jon Brisbin
ble to be reused with any views I want ETags for...but not *every* view) way? I'd like hear how others have solved this before I spend a lot of time hitting dead ends. Thanks! Jon Brisbin http://jbrisbin.com --~--~-~--~~~---~--~~ You received this mess

I posted a new template tag for forever-caching resources...

2008-08-18 Thread Jon Brisbin
is and I'd be interested in hearing how to do that. I hope you find this useful. Comments are welcome! Thanks! Jon Brisbin http://jbrisbin.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: accessing site settings in templates

2008-07-17 Thread Jon Brisbin
'REMOTE_ADDR'] > } > def view_1(request): > # ... > t = loader.get_template('template1.html') > c = RequestContext(request, {'message': 'I am view 1.'}, > processors=[custom_proc]) > return t.render(c) > > On Jul 18, 5:52 am, Jon Brisbin &

Re: accessing site settings in templates

2008-07-17 Thread Jon Brisbin
I was considering this option, but went with some custom middleware, which allows me to mix in some other things I was wanting to add to the context as well... Thanks for the suggestion! Jon Brisibn http://jbrisbin.com On Jul 17, 2008, at 4:16 PM, gordyt wrote: > > Jon I don't see why you

Re: Why 2 servers to serve dynamic and static content?

2008-07-17 Thread Jon Brisbin
On Jul 17, 2008, at 10:43 AM, 3xM wrote: > >> And in deployment, how should this be? I mean, should I have 2 apache >> instances? or use another web server for static content or...? > > You can use the same Apache instance, running 2 different virtual > hosts: One for the Django site and the othe

OpenID support in contrib.auth

2008-07-16 Thread Jon Brisbin
I tried both OpenID integration packages I could find for Django and couldn't get either to integrate in what I felt like was a clean manner (or even get them to work!). I've resolved to simply write my own, stripped-down version of an Auth backend that uses OpenID (additionally storing th

accessing site settings in templates

2008-07-16 Thread Jon Brisbin
I can't find a good answer to this in the Django docs: is there a good way to access site-specific settings from your templates without having to put them in context variables? I've got my media served by Apache and everything else by Django. In my templates, I've got an ugly hack to check

Re: legacy site in php

2008-07-15 Thread Jon Brisbin
Rather than the structure you suggest, it might be better to think about your exhibition projects not as django projects, but as django apps. Replace pyA and pyB with root/pyA and root/pyB (e.g. make your php directories a peer of the django root...conceptually, of course...you're Python f

Re: Quick question about switching to newforms-admin branch....

2008-07-15 Thread Jon Brisbin
I assumed that trunk would be moving in the newforms-admin direction, so I've switched already. I would rather do it now than have to backport stuff later... Thanks! Jon Brisibn http://jbrisbin.com On Jul 15, 2008, at 3:50 PM, Dan wrote: > Should I start with the nfa branch or with trunk a

Re: Not Django related, but would love your opinions

2008-07-11 Thread Jon Brisbin
Don't do that! I like living out here in Missouri, raising my chickens and my garden, and staying the hell away from you crazy city folk! ;) Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 2:36 PM, blis102 wrote: > This is insane... > > If this actually happens Im just going to be

Re: postgres schema support

2008-07-11 Thread Jon Brisbin
e > function is made smarter before 1.0, it's probably a good idea for > you to continue to use this syntax. > > > -- Scott > > On Fri, Jul 11, 2008 at 9:50 AM, Jon Brisbin <[EMAIL PROTECTED]> > wrote: > > I hardly ever put anything in the Postgres

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
at 9:08 AM, Jon Brisbin <[EMAIL PROTECTED]> > wrote: >> I was a little bummed to discover that the Postgres blob support we >> depend >> on at work I can't use through Django in a project for myself. I'm >> trying to >> keep multiple versions of

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
Awesome! Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 8:37 AM, Malcolm Tredinnick wrote: > > > On Fri, 2008-07-11 at 08:35 -0500, Jon Brisbin wrote: >> I've considered a custom field. I just don't think I know Django well >> enough yet to pull it

postgres schema support

2008-07-11 Thread Jon Brisbin
I hardly ever put anything in the Postgres "public" schema except for things I want exposed to all applications and tables within a database. I usually segregate the tables into schemas based on their relationship to one another. With several hundred tables in the database, this gets prett

Re: since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
ther objects in the document's relationship hierarchy. I think that would take less time than implementing a custom model field. Thanks! Jon Brisibn http://jbrisbin.com On Jul 11, 2008, at 8:24 AM, Karen Tracey wrote: > On Fri, Jul 11, 2008 at 9:08 AM, Jon Brisbin <[EMAIL PROTECTE

since I don't have a blob property...need help with files

2008-07-11 Thread Jon Brisbin
ng to me because the uploaded file is just the first part of a processing chain that's more interested in what's inside the file than it is with the file itself. I guess I'm just a little fuzzy on how manipulating files is supposed to work doing it