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 be served. > > http://www.verdjn.com/wiki/TemplatePages
Just put this up on a site I'm moving from static pages to Django, and it's just what I needed- I'd been doing something horrible with subdomains to get it working, and been thinking of doing something like this myself. One thing I had to do, because the old site has loads of .html files in the root, is put the url regex straight into the site's urls.py as the last line, eg (r'^(?P<url>.*)$', 'verdjnlib.templatepages.views.templatepage'), Huge thanks to you both for making this available. -- Derek --~--~---------~--~----~------------~-------~--~----~ 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 more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---