Breve installation for pylons 0.9.7

18 views
Skip to first unread message

Zen

unread,
Sep 21, 2009, 5:38:50 PM9/21/09
to brevé template engine
Hello everybody, bear in mind that i'am new to pylons and breve.
Iam having trouble with using breve for template engine.

what i did so far.

#Install breve
easy_install breve

#change environment.py
# Initalize Breve template-ing
config [ 'pylons.app_globals'].breve_opts = {
'root': 'judger/templates'
}

# In lib/base.py
from breve.plugin.pylons_adapter import render

# in my reviews/index call í get the error:
NameError: global name 'render' is not defined

# if i put the import my controller i get
ImportError: No module named pylons.adapter


I can understand that the pylons application is not importing the
render function. but what i dont have a clue about is why?

Zen

unread,
Sep 22, 2009, 3:13:39 PM9/22/09
to brevé template engine
Hi, i got it solved with help from the #pylons people
I had used the paster controler <new controller> before i had imported
render in my base.py controller.
by adding from yourapp import BaseController, render
solved my issue.

cwells

unread,
Oct 21, 2009, 11:36:04 PM10/21/09
to brevé template engine
Sorry I missed your question, I just discovered that for some reason
google groups decided to stop sending me mail :P

Good luck with Breve!

Regards,
Cliff
Reply all
Reply to author
Forward
0 new messages