I'm getting this error when I try to compile the application from the
command line:

python -c "import gluon.compileapp;
gluon.compileapp.compile_application('applications/api')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "gluon/compileapp.py", line 547, in compile_application
    compile_views(folder)
  File "gluon/compileapp.py", line 318, in compile_views
    data = parse_template(file, path)
  File "gluon/template.py", line 821, in parse_template
    return str(TemplateParser(text, context=context, path=path,
lexers=lexers, delimiters=delimiters))
  File "gluon/template.py", line 315, in __init__
    self.parse(text)
  File "gluon/template.py", line 794, in parse
    self.extend(extend)
  File "gluon/template.py", line 465, in extend
    text = self._get_file_text(filename)
  File "gluon/template.py", line 430, in _get_file_text
    filename = eval(filename, self.context)
  File "<string>", line 1, in <module>
NameError: name 'layout' is not defined

I'm not sure, but will having extra layout files like m_layout.html
(mobile version) be a problem?

Reply via email to