Hi Brian, I also owe you a big thanks :-)
I hope Adrian and friends will consider rolling this or something like it into the django core. We really need a nice clean way to serve up static files within the context of a django website. If you consider that people me tend to build out the static site first, then add the dynamic bits later, it only makes sense to build in functionality for static pages. One quick question: What if I have a bunch of static pages but they all include a bit of dynamic content in the sidebar (pulled from the database)? How can I include that without writing a view method for every page? Cheers, Sean On Aug 22, 2006, at 9:00 AM, Bryan Chow wrote: > > Cool! Glad to have helped. > > Cheers, > Bryan > > > On 8/21/06, Derek Hoy <[EMAIL PROTECTED]> wrote: >> 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. > > > > > :::: DataFly.Net :::: Complete Web Services http://www.datafly.net --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---