I don't know why this is happening. I'm getting to grips with the Grok framework. While following the tutorial I encountered this error. When using TAL:attributes to link to a CSS style sheet, the index page loads with a system error message. The index file is called index.cpt If I change it to index.pt it loads correctly. Can anyone tell me why this is happening? Is the cpt file type restrictive or is it my code?
index.cpt:
<html>
<head>
<link rel="stylesheet" type="text/css"
tal:attributes="href static/style.css" />
</head>
<body>
<p>Hello world!</p>
</body>
</html>
style.css:
body {
background-color: #FF0000;
}
app.py:
import grok
from sample import resource
class Sample(grok.Application, grok.Container):
pass
class Index(grok.View):
pass
class Bye(grok.View):
pass