New Tool: Django Aggregator

2009-05-29 Thread Silvio
Hello everyone, I just want to announce a brand new tool developers can use to compress all JS and CSS files easily. It's called Django Aggregator, and you can find it over at http://www.sgawebsites.com/projects/aggregator/. It's very simple, and automatically aggregates everything b

Re: Django Aggregator Duex

2007-04-29 Thread [EMAIL PROTECTED]
Thanks Malcom! But how would I apply this? Here's my code: def main(request): feed_titles = Feed.objects.all() feed_list = FeedItem.objects.all() #for i in range (1,13): #feed_list.append(FeedItem.objects.filter(feed=i)[:7]) # doesn't work...why? t = loader.get_template

Re: Django Aggregator Duex

2007-04-29 Thread [EMAIL PROTECTED]
Thanks Malcolm! Python code: def main(request): feed_titles = Feed.objects.all() feed_list = FeedItem.objects.all().order_by('feed_id') #i tried a for loop here appending feed_list to a list...but template wouldn't see list as object...? t = loader.get_template('aggregator/

Re: Django Aggregator Duex

2007-04-29 Thread [EMAIL PROTECTED]
Thanks Malcolm! Would I make a variable like this? FeedItems.objects.filter(feed_id='%s').order_by('feed_id')[:8] ??? I want this to loop through rows in my table with different values for %s...should I do this through my view or template? Thanks for the help! On Apr 29, 2:29 am, Malcolm Tre

Re: Django Aggregator Duex

2007-04-29 Thread Malcolm Tredinnick
On Sun, 2007-04-29 at 07:29 +, [EMAIL PROTECTED] wrote: > Hi everyone, > > Django/python newbie but I'm enjoying it so far! > > Quick question: > > How would I write this > > SELECT * FROM aggregator_feeditems WHERE feed_id = 1 ORDER BY feed_id > LIMIT 0,7 > > in either a view or template

Django Aggregator Duex

2007-04-29 Thread [EMAIL PROTECTED]
Hi everyone, Django/python newbie but I'm enjoying it so far! Quick question: How would I write this SELECT * FROM aggregator_feeditems WHERE feed_id = 1 ORDER BY feed_id LIMIT 0,7 in either a view or template where the feed_id value would be updated in a loop? Thanks! --~--~-~--~-

Django Aggregator

2007-04-28 Thread [EMAIL PROTECTED]
Hi everyone, Newbie to Django/Python but I'm lovin' it so far...! I'm working on an aggregator based off of http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/aggregator that I want to be something like http://news.originalsignal.com I'm unsure of how the logic in rel

Django Aggregator

2007-04-28 Thread [EMAIL PROTECTED]
Hi everyone, Newbie to Django/Python but I'm lovin' it so far...! I'm working on an aggregator based off of http://code.djangoproject.com/browser/djangoproject.com/django_website/apps/aggregator How does the code in /bin run...mentioned as hourly? Does it run as cron job? If so how would I wr