Re: urlpattern help

2005-11-19 Thread Sune Kirkeby
On 11/19/05, Bryan Murdock <[EMAIL PROTECTED]> wrote: > How do you write a urlpattern to match something like this: > > /accounts/login/?next=/add_object/ The parameters are not matched against the url patterns, in your view-func you can get it as request.GET['next']. /s

Re: Help using POST to pass values

2005-10-25 Thread Sune Kirkeby
On 10/25/05, paolo <[EMAIL PROTECTED]> wrote: > Would you please help me to clarify how things work and what I have > missed? See the "POST to views loses POST data" section in http://code.djangoproject.com/wiki/NewbieMistakes, I suspect that's your problem. /s

Re: Do's and Dont's for Application Writers

2005-10-20 Thread Sune Kirkeby
On 10/20/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > I had this same question: What's a mnemosyne? We should change it to "myapp". Mnemosyne is the greek goddess of memory, I pulled it out of the hat, because I think myapp is so boring and impersonal. But, feel free to change it. /s

Re: Do's and Dont's for Application Writers

2005-10-20 Thread Sune Kirkeby
On 10/20/05, kmh <[EMAIL PROTECTED]> wrote: > >On 10/20/05, kmh <[EMAIL PROTECTED]> wrote: > >> Shouldn't we encourage a model where site templates are able to > >> explicitly "include" application templates, rather than the other way > >> a

Re: Do's and Dont's for Application Writers

2005-10-20 Thread Sune Kirkeby
On 10/20/05, kmh <[EMAIL PROTECTED]> wrote: > Shouldn't we encourage a model where site templates are able to > explicitly "include" application templates, rather than the other way > around? That's not how applications and templates work. You can't just include a template from another

Do's and Dont's for Application Writers

2005-10-20 Thread Sune Kirkeby
Hullo. Here is a rough draft of "Do's and Dont's for Application Writers": http://code.djangoproject.com/wiki/DosAndDontsForApplicationWriters I'd be much interested in comments, suggestions and anything people disagree with, but can we keep feedback on the list? Wikis have horrible threading

Re: Media Root Woes

2005-10-14 Thread Sune Kirkeby
On 10/14/05, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > On Friday 14 Oct 2005 12:36 pm, Sune Kirkeby wrote: > > You have to setup another web-server for your media-files, > > and for the admin media-files. > > why? you can do everything on the same webser

Re: Media Root Woes

2005-10-14 Thread Sune Kirkeby
On 10/13/05, jms <[EMAIL PROTECTED]> wrote: > I expected everything under the MEDIA_URL to be served from the > MEDIA_ROOT, but all I get are 404s: Django does not serve static files; MEDIA_URL tells Django the prefix it should use in media-references, MEDIA_ROOT tells Django where it should put

Re: Surving Static Files on Django

2005-10-13 Thread Sune Kirkeby
On 9/29/05, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > To pick one example: in a dynamic serving situation, KeepAlive is > your friend; [ snip a lot ] Hmmm... HTTP Keep-Alive? Then either I'm misunderstanding you, or everything you say is exactly opposite to what I remember reading elsewhere