the parameters of the self-defined tags

2009-08-25 Thread Apple
hi , now I want to pass a parameter named user (user is a instance of User) to the self_defined tags,could I do this ? I think the passed parameter are all strings , is there a way to get its real type ? thank you for your replying ! --~--~-~--~~~---~--~~ You

Re: Models with behavior

2009-05-22 Thread Apple
that's the point On Fri, May 22, 2009 at 4:30 PM, Daniel Roseman < roseman.dan...@googlemail.com> wrote: > > On May 22, 6:19 am, vishy wrote: > > Hi, > > > > I have some functionality which needs to be part of a class,which I > > don't want to persist in database.Where

Re: Models with behavior

2009-05-22 Thread Apple
Maybe it is . you can see the sourcecode of django ,some models have the methods to add some functionalities . but I really do not know if it is right or not ... On 5/22/09, vishy wrote: > > Hi, > > I have some functionality which needs to be part of a

Re: please help me

2009-05-20 Thread Apple
That's the point ,thank you friend ! On 5/17/09, Apple <cnwe...@gmail.com> wrote: > > I write some code like following: > > #coding=utf8 > from dj

Re: LANGUAGE_CODE

2009-05-17 Thread Apple
friend ,you can do a judge operation ,mapping the English terms to the Chinese terms . that is all your need to do .because django is wirtten by english-spoken guys .(i am chinese but this is a english list ,so I write english) On 5/18/09, Kai Kuehne wrote: > > Hi, >

Re: please help me

2009-05-17 Thread Apple
thank you for your reply ,I will try . On 5/17/09, Eric Abrahamsen <gir...@gmail.com> wrote: > > > On May 17, 2009, at 1:26 AM, Apple wrote: > >> >> I

please help me

2009-05-16 Thread Apple
I write some code like following: #coding=utf8 from django.shortcuts import render_to_response from django.http import * from django.contrib.auth.models import User from

Re: App not found

2009-05-12 Thread Apple
about __unicoder__() you can find something usefull from Python doc or some books about python (core python programing ~~) good luck ! On Wed, May 13, 2009 at 10:32 AM, neri...@gmail.com wrote: > > Hello, > > I'm working on my first project and for some reason I keep getting

Re: Django 0.95 on Dreamhost

2006-08-24 Thread Apple
> hmm.. let's try the following. > > 1. take the 2 files attached to this email. > > 2. put them to some folder on dreamhost that's accessible from the outside. > > 3. now go to that folder using your browser. > > 4. click on the test.fcgi file > > > does it work? > > gabor I have tried your

Re: Django 0.95 on Dreamhost

2006-08-15 Thread Apple
> generally this means that you should put in some url-rewriting... Do you mean url rewriting in my url.py or in my .htacess? I've tried removing the .htacess file and directly accessing the fcgi file. It still generates a 500 Error. At this point I have not a clue what this error implicates

Re: Django 0.95 on Dreamhost

2006-08-14 Thread Apple
> i know this sounds stupid, but could you start from the beginning again, > and try it exactly like Jeff's tutorial says? I tried this approach. I followed every step from Jeff's tutorial (even with same subdomain and directories for django projects & src etc). At the end I still get the same

Re: Django 0.95 on Dreamhost

2006-08-14 Thread Apple
> generally this means that you should put in some url-rewriting... hm.. maybe this has something to do with it. I got the following warnings prior to the index exception WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSGIServer: missing FastCGI param SERVER_NAME required

Django 0.95 on Dreamhost

2006-08-13 Thread Apple
Hi has anyone tried running Django 0.95 on Dreamhost? I only tried to setup a simple project following the dreamhost's wiki. I am getting a string index out of range exception on common.py: -- error messages --