> > One method: > > > > set a "base" tag in template, so this tag will point the root uri of > > this page, and other uris can be related with this uri. > > > > Two method: > > > > Define some template variables used for root uri, and using them in > > urls. So you can define them in settings.py or somewhere, and if the > > situation changed, you may only change the settings.py. > > that is precisely what i would like to do. how you access a > variable defined in settings.py from a template tho? i have > not been able to track this bit down. > > 1. in the view code, pass settings.py variables into template.
2. write your own template processor and config it in settings.py -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---