When I set DEBUG=False, my 404.html doesn't appear

2012-12-29 Thread Dae James
I put my 404.html into root of the directory specified in TEMPLATE_DIRS. However, when I visit an inexisting page, the browser's 404.html appears rather than my own 404.html page. What's wrong with me ? PS: I've set the DEBUG variable in settings.py to False. Dae James -

Question about URL namespaces

2012-12-29 Thread Dae James
ication here refer to? Does it mean models ? Or something else I don't know? Thank you~~ Dae James -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsub

Re: Re: How can I contrast two date-time type variables in template layer?

2012-11-23 Thread Dae James
Soga. Thank you very much. Dae James From: smcoll Date: 2012-11-24 02:02 To: django-users Subject: Re: How can I contrast two date-time type variables in template layer? The 'timesince' filter (based on django.utils.timesince) doesn't return a datetime.timedelta object,

Re: Re: What's the difference between django.views.generic.ListView and django.views.generic.list_detail?

2012-11-21 Thread Dae James
Yes, thank you very much. I got it. Dae James From: Ankur Sethi Date: 2012-11-21 15:08 To: django-users Subject: Re: What's the difference between django.views.generic.ListView and django.views.generic.list_detail? On Wed, Nov 21, 2012 at 11:02 AM, Dae_James wrote: What's the

My page cound not load image, help!

2012-10-22 Thread Dae James
The returned html code by my app is : The "image.jpg" file is in "project_dir/photos/" directory. PS: project_dir is my django project's root directory. So why the image could not be loaded. Please help~ Thank you~ Dae James -- You received this message because

Re: Re: Question in document "How to use Django with Apache and mod_wsgi"

2012-10-18 Thread Dae James
ave when I run this site on development server or when I just set DEBUG in settings.py to True. Dae James From: Tomas Ehrlich Date: 2012-10-19 00:48 To: django-users Subject: Re: Question in document "How to use Django with Apache and mod_wsgi" Hello, have you set proper aliases