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 f

FileUploadField bug?

2005-11-16 Thread limodou
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/ Exception Type: TypeError Exception Value:

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

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

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

2005-11-16 Thread plisk
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..

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 passe

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 oth

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 reply

Re: django-admin not seeing settings.py

2005-11-16 Thread felix
Well the docs say that you COULD set it in order to avoid tedious typing. But since I was just doing a test I wouldn't bother to do that. The issue seems to be that django-admin isn't recognizing a settings passed in as : --setting=myproject.settings Now I'm doing this again with a new project

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: 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/ > E

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? :)

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 Pash
Hi, i saw a Ticket about an Oracle Backend. When will it be implemented in Django? :)

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 thumbNames

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

admin/base_site.html

2005-11-16 Thread stava
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. /stava

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 o

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

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread Robert Wittams
limodou wrote: > 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 %} >

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread limodou
> 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 document? > This is why iterating

Re: Dictionary lookups in templates?

2005-11-16 Thread Maniac
JA wrote: What I would like to do, is display an entry of thumbNames based on the value of dirName. Something like: {% for dirName in dirList %} {{ dirName }} - {{ thumbNames.{{ dirName }} }} {% endfor %} This is not possible by design: Django tries to keep templates off becoming a pro

Re: "startapp" now creates views.py, not views package

2005-11-16 Thread Simon Willison
On 16 Nov 2005, at 05:53, Adrian Holovaty wrote: This is fully backwards-compatible. If you want to keep your views in a "views" directory, that's perfectly all right. The thinking is that the common case will only need a single file called views.py. Nice change. The less directory hierarchy

Re: templates & content-elements

2005-11-16 Thread Adrian Holovaty
On 11/16/05, patrick k <[EMAIL PROTECTED]> wrote: > the content-ares should consist of small blocks (film, star, interview ...). > the site-editor should be able to MOVE these blocks around (change the > position of the block), EDIT the block (e.g. assigning a different film-ID) > and DELETING the

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 fo

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 ab

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 docume

Re: admin/base_site.html

2005-11-16 Thread stava
Thanks! /stava

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

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 this

mod_python, MEDIA_*, frustration

2005-11-16 Thread Alice
I think I'm missing something fundamental here because this setup just isn't working. *deep breath* I'm getting these errors: TemplateSyntaxError: Template 'poll_base' cannot be extended, because it doesn't exist And no amount of path wrangling can seem to fix it. It can seem to find the projec

Re: mod_python, MEDIA_*, frustration

2005-11-16 Thread Adrian Holovaty
On 11/16/05, Alice <[EMAIL PROTECTED]> wrote: > I'm getting these errors: > TemplateSyntaxError: Template 'poll_base' cannot be extended, because > it doesn't exist > > And no amount of path wrangling can seem to fix it. It can seem to find > the project okay, but not the templates. If your TEMPL

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

Re: templates & content-elements

2005-11-16 Thread patrick k
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). > > On Wednesday 16 Nov 2005 3:11 pm, patrick k wrote: >> i´m writing my PhD on "cooperative structures". right now, we

Re: templates & content-elements

2005-11-16 Thread patrick k
i see what you mean. my ideas was somehow different though. let´s say my content-area looks like this: {% block film %}1237{% endblock %} {% block star %}97{% endblock %} {% block banner %}{% endblock %}

Re: When will there be a Oracle Backend?

2005-11-16 Thread David S .
Jacob Kaplan-Moss jacobian.org> writes: > would you be up for testing a (possibly buggy) backend if I could get > one out? I would like to volunteer as well. Are there unit tests or is that part of volunteering? Also, I am curious what the differences are and if versions matter.

Re: When will there be a Oracle Backend?

2005-11-16 Thread Jacob Kaplan-Moss
On Nov 16, 2005, at 12:58 PM, David S. wrote: Jacob Kaplan-Moss jacobian.org> writes: would you be up for testing a (possibly buggy) backend if I could get one out? I would like to volunteer as well. Are there unit tests or is that part of volunteering? There are inteed unit tests of t

Re: When will there be a Oracle Backend?

2005-11-16 Thread Jeremy Dunck
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: http://e-docs.bea.com/workshop/docs81/doc/en/core/index.html

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: > http://e-docs.bea.c

Re: When will there be a Oracle Backend?

2005-11-16 Thread Maniac
Jacob Kaplan-Moss 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 use a cursor or a temp table). Oracle has 'rownum' - a virtual field representing the ordinal number of a row. So you can do this:

Re: When will there be a Oracle Backend?

2005-11-16 Thread Jacob Kaplan-Moss
On Nov 16, 2005, at 3:10 PM, Jeremy Dunck wrote: select x from foo limit 10 offset 20 becomes: select * from ( select x from foo ) where rownum between 20 and 30 Right; the issue is that query rewriting is... scary; making the backend rewrite your queries for you sucessfully could be diffi

Preventing Google Web Accelerator from prefetching

2005-11-16 Thread Richie Hindle
Hi, I've written a small piece of middleware to prevent Google Web Accelerator (or any other prefetching client) from prefetching URLs. Since this is my first piece of middleware, I'd appreciate it if those more experienced than me could tell me whether it looks sensible, or whether it's flawed

Re: Preventing Google Web Accelerator from prefetching

2005-11-16 Thread Jacob Kaplan-Moss
On Nov 16, 2005, at 4:16 PM, Richie Hindle wrote: I've written a small piece of middleware to prevent Google Web Accelerator (or any other prefetching client) from prefetching URLs. Since this is my first piece of middleware, I'd appreciate it if those more experienced than me could tell me

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 bandwidt

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 r

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 URLco

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

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 into

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

Re: why pub_date is split to pub_date_date and pub_date_time

2005-11-16 Thread limodou
2005/11/17, Robert Wittams <[EMAIL PROTECTED]>: > > 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. " > > > >

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 wha

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 first

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 socket

Re: svn up, admin has stopped working

2005-11-16 Thread Bryan Murdock
On 11/16/05, Bryan Murdock <[EMAIL PROTECTED]> wrote: > 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