On 11/8/06, Gerard Whittey <[EMAIL PROTECTED]> wrote: > > I saw the ticket for this Template Loader for PHP files > http://code.djangoproject.com/ticket/2440 > > I was wondering if someone could explain how you would integrate this > into a django project. I read through the docs about templates but it > was beyond me as I am just starting to learn python. > > I just need to be able to test out if this php template loader will work > so I can convince the "bosses" we need to switch from php to this. > You want to focus on the "Loading Templates" [1] section, more specifically, the "Loader Types" [2] sub-section. Add the new loader to the "TEMPLATE_LOADERS" setting in your settings.py file. Then you'll need to make sure that your TEMPLATE_DIRS [3] setting points to the directory which contains your php templates.
[1]: http://www.djangoproject.com/documentation/templates_python/#loading-templates [2]: http://www.djangoproject.com/documentation/templates_python/#loader-types [3]: http://www.djangoproject.com/documentation/templates_python/#the-template-dirs-setting -- ---- Waylan Limberg [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---