Re: psycopyg setup error: no build_ext

2009-07-06 Thread Justin Johnson
I corrected the build_ext error and successfully built/installed by adding the full path to pg_config in setup.cfg. On Jun 23, 10:19 am, Chris Haynes wrote: > Using what I believe is the latest version of psycopyg, I get: > > 509 ~/Desktop/psycopg2-2.0.9$ python setup.py build > running build >

Re: django built-in web server

2007-08-10 Thread Justin Johnson
Apache is the easiest and most documented route. It is pretty easy to set-up and config so don't let that put you off. However, I had a situation where I needed a single self-contained install for deployment. On that occasion I used CherryPy3 + WSGI and ran the whole thing as a windows serv

Re: django built-in web server

2007-08-10 Thread Justin Johnson
like python setuptools to install django and the > project. The http server must be run in python. Have to install > sqlite manually? > > It seems 2) is better but it might still be too complex to install. > Still evaluating my options now... > > On Aug 10, 5:36 pm, Justin John

Django, CherryPy and threading

2007-08-28 Thread Justin Johnson
I've managed to get Django working nicely with CherryPy using WSGI. Previously I've deployed Django with Apache and ModPython where each requested is serviced by a separate Python instance. This isn't the case with CherryPy though as it's thread based which leads me to the following concern:

Re: Django, CherryPy and threading

2007-08-29 Thread Justin Johnson
ery careful with parallel requests. Justin > On Aug 29, 1:39 am, Justin Johnson <[EMAIL PROTECTED]> wrote: > >> I've managed to get Django working nicely with CherryPy using WSGI. >> Previously I've deployed Django with Apache and ModPython where each >>

Re: help with tagging app

2006-12-15 Thread Justin Johnson
There may be a performance issue for large object sets and retrieving all tags: def tag_list(request): all_tags = TaggedItem.objects.order_by('tag') tag_names = {} for tag in all_tags: if tag.tag not in tag_names: tag_names[tag.tag] = tag names = sorted(tag_

Re: video uploads (like you tube)

2007-01-24 Thread Justin Johnson
Django really does need stream uploading. IIRC, there's a patch to do this. Does anyone know if that patch is ever going to make it into an official release? On 25 Jan 2007, at 02:08, Jeremy Dunck wrote: > > On 1/24/07, Julio Nobrega <[EMAIL PROTECTED]> wrote: >> >> Uploading a video i

GeoDjango GDAL Slice Error in layer.py

2018-01-12 Thread Justin Johnson
I'm completely new to GeoDjango. I'm working through the tutorial for Django version 2.0, and I am encountering an error when I follow the steps in the GeoDjango section. Specifically, when I attempt to slice a Layer object to extract Features, it gives me an error which looks like a poss

Borrowing functionality from Django Admin forms

2018-03-07 Thread Justin Johnson
I have a user who saw how new objects can be created using the Admin forms, and asked if I could reproduce some of that functionality. I'm still new to Django, and even newer to building forms. I'm wondering if there is a way to "borrow" elements from the Admin forms into my own forms and tem