Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-21 Thread Ian Holsman
you might want to check out hugo's dbtemplate loader (which I updated to work with the current trunk) http://svn.zyons.python-hosting.com/trunk/zilbo/common/dbloader/ that way you can store the templates themselves in a database, which might make life a bit more easier. regards Ian On

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-21 Thread Bryan Chow
Hi Sean, No worries, glad to hear that you find TemplatePages useful :) To answer your question, you can write a custom inclusion tag to insert snippets of dynamic content into your templates. http://www.djangoproject.com/documentation/templates_python/#inclusion-tags Alternately, you could

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-21 Thread Derek Hoy
On 8/15/06, Bryan Chow <[EMAIL PROTECTED]> wrote: > > Ian Clelland and I wrote a Django app that does just that (mapping > URLs to mostly-static templates). Our code also takes several other > issues into consideration, such as sanitizing the URL so that > arbitrary files on the filesystem won't

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Bryan Chow
On 8/15/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > Wow! Ask and ye shall receive! > > TemplatePages is *precisely* what I was looking for :-) > > I can't wait to get to the office and try it out. Yay! > > Sean Cool. Please let us know how it works out for you. Bryan :)

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Sean Schertell
Wow! Ask and ye shall receive! TemplatePages is *precisely* what I was looking for :-) I can't wait to get to the office and try it out. Yay! Sean On Aug 16, 2006, at 6:33 AM, Bryan Chow wrote: > > On 8/15/06, Sean Schertell <[EMAIL PROTECTED]> wrote: >> I'd really like to use Django

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Bryan Chow
On 8/15/06, Sean Schertell <[EMAIL PROTECTED]> wrote: > I'd really like to use Django templates and stay DRY by using the > same base template for my static pages as I do for any apps in the > site. On 8/15/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > ... you just need an easy way to

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Malcolm Tredinnick
On Tue, 2006-08-15 at 17:47 +0900, Sean Schertell wrote: [...] > I'd really like to use Django templates and stay DRY by using the > same base template for my static pages as I do for any apps in the > site. But I'm a little bit put-off by the "flatpages" middleware > because it store the

Re: Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Ivan Sagalaev
Sean Schertell wrote: > I'd really like to use Django templates and stay DRY by using the > same base template for my static pages as I do for any apps in the > site. But I'm a little bit put-off by the "flatpages" middleware > because it store the content in a database -- seems to

Creating a "mostly static" site with Django -- dumb idea?

2006-08-15 Thread Sean Schertell
Hi guys, I mostly create pretty boring websites with little apps built-in. For example, a 6 to 10 page website full of static pages about a company, plus a couple of small apps -- maybe a blog or a custom photo gallery. I'm very excited about Django's approach toward keeping apps/