Django/lighttpd weirdness

2005-11-16 Thread James Bennett
I'm working on writing instructions for deploying Django at TextDrive, and so I'm using the Django/lighttpd_FCGI instructions here: https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoFcgiLighttpd But I'm seeing something extremely odd with my test deployment; even though the

Re: templates & content-elements

2005-11-16 Thread Kenneth Gonsalves
On Wednesday 16 Nov 2005 11:26 pm, patrick k wrote: > i guess your implying the wrong intention here. > i didn´t want to offend anyone. sorry if i did. just wanted to give > some personal information (with relevance to my question). i didnt get offended - when i started reading your post, i

Re: admin/base_site.html

2005-11-16 Thread Kenneth Gonsalves
On Wednesday 16 Nov 2005 8:26 pm, stava wrote: > Hi all, > > does anyone now how to use the {% block nav-global %} tag in > admin/base_site.html? I'm looking to get a nice main menu bar kinda' > thing like on the django site, but I'm not experienced (clever) > enough to figure it out. this is

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread Robert Wittams
limodou wrote: >>This isn't very well documented right now. >>See "http://www.djangoproject.com/documentation/model_api/;, under >>DateTimeField: >> >>"the admin represents this as two fields, with >>JavaScript shortcuts. " > > > But there are no JavaScript shortcuts in output code of generic

Sites, how do I use them

2005-11-16 Thread Ian Holsman
hi. I have a application where sites would be a great fit for. but I'm not sure how I make use of them. is it as easy as just adding a 'Site' Field to my model on all the tables,/classes and django takes care of the rest? or do I need to explictly hard code the views so that 'site' is taken

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread limodou
> This isn't very well documented right now. > See "http://www.djangoproject.com/documentation/model_api/;, under > DateTimeField: > > "the admin represents this as two fields, with > JavaScript shortcuts. " But there are no JavaScript shortcuts in output code of generic view, may be a bug? > >

Re: FileUploadField bug?

2005-11-16 Thread limodou
2005/11/16, Adrian Holovaty <[EMAIL PROTECTED]>: > > On 11/16/05, limodou <[EMAIL PROTECTED]> wrote: > > I'm testing generic view, and I had a FileField in my polls model, but > > as I summited, I got a Exception: > > Hi limidou, > > We can't help you much in this case, unless you paste your

Re: Preventing Google Web Accelerator from prefetching

2005-11-16 Thread Richie Hindle
[Luke] > I know some people want to use links (i.e. HTTP GET requests) which > have side effects, which is Bad. [Jacob] > if an app modifies > data based on a GET, then the app should be considered broken. "Logout" is often a link, like it or not. (Amazon, Gmail, Yahoo...) And yes, server

Re: Preventing Google Web Accelerator from prefetching

2005-11-16 Thread Luke Plant
On Wed, 16 Nov 2005 22:16:23 + Richie Hindle wrote: > > Hi, > > I've written a small piece of middleware to prevent Google Web > Accelerator (or any other prefetching client) from prefetching URLs. Can I ask first of all why you are doing this? If you are trying to conserve your

Re: When will there be a Oracle Backend?

2005-11-16 Thread Jeremy Dunck
On 11/16/05, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > On 11/16/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Off the top of my head, the big difference I can think of is that > > Oracle doesn't support LIMIT/OFFSET on queries (you're supposed to > > This doesn't suck: >

Re: mod_python, MEDIA_*, frustration

2005-11-16 Thread Alice
"The only thing that changes is that the Apache user (the user Apache runs under) needs permission to read your templates." ... oh. my kingdom for some nicer error messages. This problem has tripped me up before but not on django. It was the permissions: for some reason they all have a mixture

Anonymous Sessions

2005-11-16 Thread Brant Harris
Is it wise to store a large amount of data in an anonymous session? For instance, and most applicable to my design, if I store results of a search in a session like so: request.session['search_results'] = objects.get_list(name__icontains=query) And then I can more easily give paged results back

Re: svn up, admin has stopped working

2005-11-16 Thread Bryan Murdock
On 11/16/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 11/16/05, Bryan Murdock <[EMAIL PROTECTED]> wrote: > > I did an svn up last night and now the admin interface doesn't work. > > Here is the error I'm getting: > > Hey Bryan, > > Are you using the new-admin branch? I can't recreate

Re: svn up, admin has stopped working

2005-11-16 Thread Adrian Holovaty
On 11/16/05, Bryan Murdock <[EMAIL PROTECTED]> wrote: > I did an svn up last night and now the admin interface doesn't work. > Here is the error I'm getting: Hey Bryan, Are you using the new-admin branch? I can't recreate this error using trunk. Adrian -- Adrian Holovaty holovaty.com |

svn up, admin has stopped working

2005-11-16 Thread Bryan Murdock
Hi, I did an svn up last night and now the admin interface doesn't work. Here is the error I'm getting: TemplateSyntaxError at /ctm/admin/ 'block' tag with name 'userlinks' appears more than once Request Method: GET Request URL: Exception Type: TemplateSyntaxError Exception

Re: admin/base_site.html

2005-11-16 Thread stava
Thanks! /stava

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread Robert Wittams
limodou wrote: >>Fields can create multiple FormFields. > > > So you mean Fields is not the same as FormFields, and the splited > FormFields can be combine again as auto saving to DB? But if I want to > manually create a form in template, what rule should I followed with ? > Is there some

Re: FileUploadField bug?

2005-11-16 Thread Adrian Holovaty
On 11/16/05, limodou <[EMAIL PROTECTED]> wrote: > I'm testing generic view, and I had a FileField in my polls model, but > as I summited, I got a Exception: Hi limidou, We can't help you much in this case, unless you paste your URLconf and models. Go ahead and show us that stuff, and we'll be

Re: OneToOne relations broken (#527), any workarounds ?

2005-11-16 Thread Adrian Holovaty
On 11/16/05, plisk <[EMAIL PROTECTED]> wrote: > Hard to believe no one knows anything about bug marked as critical with > high priority.. Ok, if i re-phrase it, any ETA available except just > Milestone 1.0 ? Because its not so clear when it happens.. Hey plisk, I'll put this on my to-do list

Re: django-admin not seeing settings.py

2005-11-16 Thread Waylan Limberg
On 11/16/05, felix <[EMAIL PROTECTED]> wrote: > > and note that the PYTHON_PATH should specify the *parent* directory of > your project. > > I just tried it again with DJANGO_SETTINGS_MODULE **not** exported and > passing in django-admin.py --settings=myproject.settings > > that does not work,

Re: admin/base_site.html

2005-11-16 Thread Wilson Miner
That's just a template block which you can fill in with your own contents (or rename or remove altogether if you choose). Django doesn't do any magic management of public site navigation (unless you use it to build an app that does). See this section of the template documentation for an overview

Re: When will there be a Oracle Backend?

2005-11-16 Thread Jacob Kaplan-Moss
On Nov 16, 2005, at 7:04 AM, Pash wrote: i saw a Ticket about an Oracle Backend. When will it be implemented in Django? :) IIRC there are a few pretty major differences between Oracle and other RDBMSes that are preventing a Oracle backend from being "easy". I'll reinstall Oracle and take

Dictionary lookups in templates?

2005-11-16 Thread JA
Hi, I am trying to perform a dictionary lookup within a template, and have got stuck. I pass a list( dirList ) and a dict ( thumbNames ) to render_to_response. Within the template I process the list, and print each occurence of dirList. What I would like to do, is display an entry of

When will there be a Oracle Backend?

2005-11-16 Thread Pash
Hi, i saw a Ticket about an Oracle Backend. When will it be implemented in Django? :)

When will there be a Oracle Backend?

2005-11-16 Thread [EMAIL PROTECTED]
Hi, i saw a Ticket for that, when will it be implemented in Django? :)

Re: FileUploadField bug?

2005-11-16 Thread limodou
2005/11/16, limodou <[EMAIL PROTECTED]>: > I'm testing generic view, and I had a FileField in my polls model, but > as I summited, I got a Exception: > > TypeError at /polls/add/ > string indices must be integers > Request Method: POST > Request URL:http://127.0.0.1:8000/polls/add/ >

Re: django-admin not seeing settings.py

2005-11-16 Thread felix
and note that the PYTHON_PATH should specify the *parent* directory of your project. I just tried it again with DJANGO_SETTINGS_MODULE **not** exported and passing in django-admin.py --settings=myproject.settings that does not work, you have to set/export DJANGO_SETTINGS_MODULE thanks

Re: Trouble with Apache 1.3 and FCGI on Mac OS X

2005-11-16 Thread Ian Holsman
Hi Colin. as a point of reference I use Apache2 + mod-python on my OS/X box and it works like a charm. I would recommned people investigate this option as well. regards Ian. On 11/16/05, Colin Howlett <[EMAIL PROTECTED]> wrote: > > Georg, > > I wasn't really complaining about not getting a

Re: Trouble with Apache 1.3 and FCGI on Mac OS X

2005-11-16 Thread Colin Howlett
Georg, I wasn't really complaining about not getting a reply, just stating a fact :-) Anyway, I did try downloading from http://www.inoi.fi/open/trac/eunuchs and it didn't compile for me. Were you using 10.4? As I said, my problem is solved, but it would be nice to have clear guidance for

Re: templates & content-elements

2005-11-16 Thread Kenneth Gonsalves
On Wednesday 16 Nov 2005 3:11 pm, patrick k wrote: > i´m writing my PhD on "cooperative structures". right now, we are > writing an article called "RTFM and teach yourself" for a book about > "micro-learning" this is not really necessary, we help anyone on this list - except ppl who havent

Re: Creating new tables

2005-11-16 Thread james.zhang
在 2005-11-15 2:56:17,"panos" <[EMAIL PROTECTED]> 写道: > > Hi, > > is it possible to create new tables not specified in the model at > runtime? > If yes then > a. how can you do that? > b. can the new tables be accessed using the database API? > > Thank you very much > Best Regards >

templates & content-elements

2005-11-16 Thread patrick k
first of all, let me introduce myself: i´m working as a programmer/designer with vonautomatisch in vienna/austria. i´m writing my PhD on "cooperative structures". right now, we are writing an article called "RTFM and teach yourself" for a book about "micro-learning" which is going to be published

why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread limodou
I want to use generic view to create my model polls's form html code, but I found pub_date is split to pub_date_date and pub_date_time, I want to know if there are some documents remind this. I used below code: {% for field in form.fields %} {{field}} {% endfor %} and I want to know how to get