I am trying to follow the tutorial for pylons using this version,
however there is no templates directory in my project.  I created this
directory and put my templates in there.  Pylons starts my project
find but when i return a render of my template it complains it can't
find it.  helloworld/helloworld/templates/serverinfo.html. Here is the
output.

Module helloworld.controllers.hello:16 in serverinfo
<<
        def serverinfo(self):
            return render('/serverinfo.html')>>  return render('/
serverinfo.html')
Module pylons.templating:338 in render
<<                                      **cache_args)
        return pylons.buffet.render(template_name=template,
fragment=fragment,
                                    format=format, namespace=kargs,
**cache_args)

    >>  format=format, namespace=kargs, **cache_args)
Module pylons.templating:225 in render
<<          log.debug("Rendering template %s with engine %s",
full_path, engine_name)
            return engine_config['engine'].render(namespace,
template=full_path,
                **options)>>  **options)
Module genshi.template.plugin:104 in render
Module genshi.template.plugin:149 in transform
Module genshi.template.plugin:109 in transform
Module genshi.template.plugin:89 in load_template
Module pkg_resources:840 in resource_filename
<<  Perhaps your account does not have write access to this
directory?  You can
    change the cache directory by setting the PYTHON_EGG_CACHE
environment
    variable to point to an accessible directory.
    """         % (old_exc, cache_path)
            )>>  variable to point to an accessible directory.
Module pkg_resources:160 in get_provider
<<
    macosVersionString = re.compile(r"macosx-(\d+)\.(\d+)-(.*)")
    darwinVersionString = re.compile(r"darwin-(\d+)\.(\d+)\.(\d+)-
(.*)")
    get_platform = get_build_platform   # XXX backward compat>>
darwinVersionString = re.compile(r"darwin-(\d+)\.(\d+)\.(\d+)-(.*)")
<type 'exceptions.ImportError'>: No module named /serverinfo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to