django cache size limited?

2008-05-28 Thread book4e
HI all, I have a django site on dreamhost. It runs well before. As table records grew, I introduced low level cache about queryset as document said. Something like this: if not cache.get(key): try: r = Book.objects.all().order_by('-modify_date') except Book.DoesNot

Re: New Django Site

2008-05-22 Thread book4e
Cool, I like the design. Do you use webfaction or some what? On 5/22/08, Jashugan <[EMAIL PROTECTED]> wrote: > > > > On May 21, 1:27 pm, Bret W <[EMAIL PROTECTED]> wrote: >> Hey all- >> >> Over the past few evenings, I've put together a simple site for >> submitting and listing job and salary inf

Re: Django en Dreahost

2008-04-19 Thread book4e
> Yeap, my typo error. So If Django works with Python >= 2.3, why Python > 2.5 should be installed at DH to run Django? It's NOT necessary. If you use sqlite as backend, Python 2.5 ships with an sqlite wrapper in the standard library, so you don't need to install anything extra in that case. --~

Re: Django en Dreahost

2008-04-17 Thread book4e
I've installed and run a django app on dreamhost without problem. I recommend do the following things before install your django app. 1. Install virtualenv to create your own Python environment. 2. Download, Compile and install Python 2.5. DH defau

Re: why can't use my own freeform.html

2008-04-07 Thread book4e
I put freeform.html free_preview.html and posted.html under * project/templates/comments/* instead of *myapp/templates/comments/* and now django found these customed comments templates. Thank you for your patience. --~--~-~--~~~---~--~~ You received this message be

why can't use my own freeform.html

2008-04-07 Thread book4e
Hi all, I followed http://code.djangoproject.com/wiki/UsingFreeComment but can't let my own freeform work. I have already put freeform.html free_preview.html and posted.html under myapp/templates/comments/. There is no hidden field 'url' when I check html source although I put it in freeform.html.

Re: Announce: 7days7apps.com

2008-01-28 Thread book4e
瞧人这名字取的。 --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to [EMAIL PROTECTED] For mor

Re: Extending generic views and pagination

2007-05-12 Thread book4e
I am sorry for the typo. (r'^list/$', 'django.views.generic.list_detail.object_list', entry_dict), should be: (r'^list/$', 'django.views.generic.list_detail.object_list', myObj_dict), --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: Extending generic views and pagination

2007-05-12 Thread book4e
I think a dict contain queryset and extra info should be passed in url patterns as third parameter. maybe this will work in your urls.py myObj_dict = { 'queryset': myObj.objects.all(), 'paginate_by': 10, } (r'^list/$', 'django.views.generic.list_detail.object_list', entry_dict), --~--~-

Re: django-tagging and admin pages

2007-05-11 Thread book4e
Tag can be edit or delete in admin interface without problems. I suggest using def _get_tags(self): return Tag.objects.get_for_object(self) def _set_tags(self, tag_list): Tag.objects.update_tags(self, tag_list) tags = property(_get_tags, _set_tags) in